Get a file from a session
get_fileA file a session downloaded or was given (get_job lists them). Up to 5 MB comes back in the result (an image as an image, text as text, anything else as an embedded file); larger ones are linked in the app.
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": {
"id": "<id>",
"file_id": "<file_id>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Any job of the session. | |
| file_id | Yes |