file_read
Family: Files — scoped reads/writes inside the guardrail card. See Files.
Read a file from the project (guarded).
@mcp.tool()
def file_read(
dir: str,
path: str,
) -> str
Parameters
| Name | Type | Required |
|---|---|---|
dir | str | yes |
path | str | yes |
Returns str.
Call shape
Fill your values; omit optional parameters:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "file_read",
"arguments": {
"dir": "...",
"path": "..."
}
}
}