digest_file
Ask a question about a text, source, log, JSON, or PDF file instead of reading it all; get bounded answers with line references and file-checked quotes.
Instructions
Ask a question about a file (text, source, log, JSON, PDF) instead of reading it.
The executor reads the whole file, in parts sized to its context, and answers in at most max_words with line references and quotes. The server checks every quote against the file and lists the numbers of the answer that are not in the file. grep: optional regular expression; only matching lines (with context) are read, which is faster on large files when you know what to look for.
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": {
"path": "<path>",
"question": "<question>"
},
"name": "digest_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| path | Yes | ||
| model | No | ||
| question | Yes | ||
| max_words | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |