Create an upload
create_uploadGet somewhere to put a local file — the right choice for ANY file that is not already at a URL, up to 20 GB (5 GB through the upload link shown to the person). Say what the file should become in output_format: the conversion then starts on its own the instant the person sends the file, and collecting the result is all that is left. Returns an import_id plus two ways to deliver the bytes: a link to show the person so they upload from their own browser (use this when your own network cannot reach convert.online or storage), or a URL to PUT the bytes to yourself. Then call convert with the import_id to collect the result; it waits for the file to arrive. For a PDF tool (compress, merge, sign...) on a local file pass pdf_tool instead of a real output_format: a one-file tool then starts on its own when the file arrives; for merge, compare, overlay and images-to-pdf call create_upload once per file and then pdf_tool with all the import_ids in order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_format": "<output_format>"
},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | With pdf_tool: the tool's options from list_pdf_tools. Passwords are not accepted here; give them to pdf_tool. | |
| filename | No | Name of the file being uploaded, e.g. "photo.jpg" — the source format is taken from it. | |
| pdf_tool | No | Optional: a PDF tool from list_pdf_tools (e.g. "compress", "merge") to run on this file instead of a conversion. | |
| input_format | No | Source format, if the file name does not carry a usable extension. | |
| output_format | Yes | What the file should become, e.g. "png". Required: with it the conversion starts by itself when the file arrives, so nothing depends on a later call. With pdf_tool give "pdf"; it is then ignored. |