Read a file
read_fileReturns a text file's content as everyone sees it now. Optionally only a range of lines (1-based, inclusive). The content is the author's manuscript text. An image (PNG, JPEG, GIF, WebP) is returned as the picture itself, and a PDF or EPS figure as a picture of its first page, so figures can be looked at.
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": {
"project_id": "<project_id>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file's path, e.g. main.tex or sections/intro.tex. | |
| end_line | No | ||
| project_id | Yes | The project's id, from list_projects. | |
| start_line | No |