Skip to main content

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

NameTypeRequired
dirstryes
pathstryes

Returns str.

Call shape

Fill your values; omit optional parameters:

{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "file_read",
"arguments": {
"dir": "...",
"path": "..."
}
}
}