files_retrieve_content
Download a file's content from a file upload, returning a summary with filename, size, and content-type. Optionally encode small files as hex string.
Instructions
Download a file. By default returns a summary (filename + bytes + content-type); pass as_hex=true to inline small file content as a hex string.
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_id": "<file_id>"
},
"name": "files_retrieve_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_hex | No | If true, encode the binary content as hex. Useful for small files. | |
| file_id | Yes | Numeric file_id returned by files_upload |