read_file
Read text from a file in a ShareLaTeX project, optionally limited to a line range. Use it to inspect .tex sources or chapter files before editing.
Instructions
Read text from one file in a ShareLaTeX project.
Read-only. project is a project name or id. file_path is the path
inside the project, such as main.tex or chapters/intro.tex. Omit
start_line and end_line to read the whole file. Line numbers are
1-based and inclusive. end_line past the end of the file is clamped.
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": "<project>",
"file_path": "<file_path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| end_line | No | ||
| file_path | Yes | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |