split_html
documentBreak a long HTML document into separate files — by heading level, by a custom delimiter, or by page break. Each section comes back as its own signed download URL.
- When to use
- A single large HTML export needs to become one file per chapter or section.
- Not for
- Turning HTML into a PDF (html_to_pdf). Splitting a PDF (split_pdf).
- Returns
- A list of HTML fragments, each with a filename and a signed download URL.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| file_url | string | no | Public http(s) URL of the input file (preferred — fetched server-side, so the bytes never pass through your context). Private, loopback and cloud-metadata addresses are blocked. |
| file_base64 | string | no | Base64 of a small inline input file (up to about 15MB). Provide "filename" too. |
| filename | string | no | Original filename including its extension, e.g. "report.pdf". The extension is how the source format is detected. |
| html | string | no | Raw HTML to split, instead of a file. |
| split_by | string | no | Where to cut the document. (h1, h2, h3, hr, page-break, custom) |
| custom_delimiter | string | no | The delimiter to cut on when split_by is 'custom'. |
| output_base_name | string | no | Base name for the produced files. |
Example call
JSON-RPC tools/call body (sent to https://convertfleet.com/api/mcp):
{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "split_html", "arguments": {
"file_url": "https://example.com/input"
} }
}Connect first
curl -sN https://convertfleet.com/api/mcp \
-H "Authorization: Bearer flt_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'See the quickstarts for Hermes, Claude, Cursor, OpenClaw, n8n, Zapier and Make.