Upload a file
upload_fileBring a file into FynePDF. Shows a drop zone where the app supports it (Claude, ChatGPT, VS Code); it takes several files at once, e.g. for a merge, and reports their file_ids in order. With file_name and size_bytes it also returns a signed upload_url and a ready curl command, for a code sandbox or agent to PUT the bytes; the file_id works once the upload is done. ChatGPT users can just pass the attached file to any tool instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Name with extension, e.g. report.pdf. | |
| size_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | No | ||
| max_mb | No | The same limit in MB as FynePDF states it: say this one. | |
| file_id | No | ||
| message | Yes | ||
| filename | No | ||
| max_bytes | No | ||
| expires_in | No | ||
| upload_url | No |