readFileTool
Read a file from the AgentFiles directory and return its contents as text, enabling safe access to local agent files within FileMCP.
Instructions
Reads a file from the 'AgentFiles' directory and returns its contents as text.
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": "readFileTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | The path to the file to read, relative to the 'AgentFiles' directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The contents of the file or an error message. |