upload_file
Save files to the server's temporary storage for PDF processing by passing a full path, short filename, or raw bytes/base64 data.
Instructions
Persist an uploaded file into the server temp directory.
Accepts:
Full path string
Short filename previously written to temp storage
Bytes / file-like / dict with base64 (will be saved to temp)
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": {
"file": "<file>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||