Read file
read_fileReads a file by path. Content comes back as blocks in contentList — one per page for parsed documents, one per sheet for spreadsheets. Use blockIndex for a single block, startLine/lineCount to page through a large one.
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>",
"context": "<context>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path of one file including its filename, e.g. '/docs/readme.md'. | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| lineCount | No | How many lines to return starting at startLine. For parsed-document/text blocks, omit to read the block to its end. For spreadsheet sheets (xls/xlsx/csv), omit and you get at most 500 lines by default, not the whole sheet — check hasMore and raise startLine by lineCount to page through the rest. | |
| startLine | No | 1-based first line to return within each block. Defaults to 1. Pair with lineCount to page through a block too large to read in one call. | |
| blockIndex | No | Return only one content block, by 0-based index into the block list. A block is one page for parsed documents (pdf/doc/ppt) and one sheet for spreadsheets (xls/xlsx/csv). Omit to return every block. Note this is list position, not the block's own sequence number. | |
| workspace_id | No | Which workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace. |