read_file
Retrieve the contents of a file from an Overleaf project by specifying its path, with an optional project name for multi-project setups.
Instructions
Read a file from a project.
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": {
"filePath": "<filePath>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path within the project, e.g. "main.tex". | |
| projectName | No | Project name, fuzzy name, or 24-char project ID. Omit to use the default/sole project. |