read_document
Extract targeted content from local PDF, Excel, CSV, JSON, TXT, and DOCX files by specifying page, row, or character limits. Get precise document sections without loading the entire file.
Instructions
Read a portion of a document (PDF, Excel, CSV, JSON, TXT, DOCX).
IMPORTANT: When presenting results to users, ALWAYS mention:
The folder/directory path (e.g., 'Well 1/Well Test/')
The complete document name This helps users understand which well and document type is being referenced.
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_path": "<file_path>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| max_chars | No | ||
| page | No | ||
| max_pages | No | ||
| sheet | No | ||
| start_row | No | ||
| num_rows | No | ||
| include_tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |