craftos_read_file
Read a workspace-relative file to inspect program or test contents before editing; paths outside the workspace are refused.
Instructions
Read a file from the workspace on disk and return its text. Use it to check what a program or test file holds before editing it; to see what a running computer shows, use craftos_ui or craftos_read_terminal instead. Paths that leave the workspace are refused.
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": "craftos_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Workspace-relative path with forward slashes, e.g. "startup.lua" or "lib/ui.lua". |