prepare_file
Reserve a file slot (PDF, Excel, or image, max 10MB), then PUT the bytes to upload_url with Bearer. Needs a terminal or HTTP client. No terminal? Use send_file or upload_file with a url, or content_base64 for files up to 2 MB.
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": {
"filename": "<filename>"
},
"name": "prepare_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Agent token, if not sent as the Authorization: Bearer header. | |
| filename | Yes | Name with extension, for example report.pdf. | |
| media_type | No | For example application/pdf. Guessed from the name if missing. |