Skip to main content

split_html

document

Break 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

NameTypeRequiredDescription
file_urlstringnoPublic 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_base64stringnoBase64 of a small inline input file (up to about 15MB). Provide "filename" too.
filenamestringnoOriginal filename including its extension, e.g. "report.pdf". The extension is how the source format is detected.
htmlstringnoRaw HTML to split, instead of a file.
split_bystringnoWhere to cut the document. (h1, h2, h3, hr, page-break, custom)
custom_delimiterstringnoThe delimiter to cut on when split_by is 'custom'.
output_base_namestringnoBase 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.