get_file_content
Download the raw text content of an uploaded file, decoded as UTF-8, with an option to limit the number of bytes returned.
Instructions
Download the raw content of an uploaded file as text.
Bytes are decoded as UTF-8 with replacement for invalid sequences. Output
is truncated to `max_bytes` to avoid overwhelming the response.
Args:
file_id: ID of the uploaded file.
max_bytes: Maximum bytes to return (default 500 000).
Returns:
File text, with a truncation note appended when the content exceeds `max_bytes`.
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": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| max_bytes | No |