get_file_content
Read the full text of an indexed file by its ID, or get surrounding context around a specific chunk to expand search results.
Instructions
Read an indexed file's text by file_id (from a search result).
Two modes:
around_chunk < 0 (default): the whole extracted text. Large files are capped — prefer a window (below) to read a specific part of a big doc.
around_chunk >= 0: that chunk plus
radiuschunks on each side, in order. This is how you expand around a specific search hit: pass the file_id and the chunk index the search returned to get its surrounding context.
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 |
|---|---|---|---|
| radius | No | ||
| file_id | Yes | ||
| around_chunk | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |