Read file
read_fileRead text files from an allowed root directory, blocking sensitive files. Provides secure read-only access to local repository content for analysis.
Instructions
Read a text file inside an allowed root. Sensitive files are blocked.
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 | Absolute file path inside an allowed root. | |
| maxBytes | No |