read_workspace_file
Read workspace files while blocking secrets, keys, and tokens. In direct mode, scope reads to the session repo and return a SHA-256 hash.
Instructions
Read a file within the workspace. Sensitive files (secrets, keys, tokens) are blocked. In Direct mode (with session_id), reads are scoped to the session's repo_path and return sha256.
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": {
"path": "<path>"
},
"name": "read_workspace_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to a file inside the workspace or session repo | |
| session_id | No | Optional Direct session ID. When provided, read scope is limited to the session's repo_path and sha256 is returned. |