Call page.read_file
Answer a member's question about what is IN one of a site's files — 'what's in Hero.astro?', 'show me the homepage code', 'let me see that file', 'what does the header say in the code?'. No site id is needed — it works on the site the member has open on screen. It reads one source file in a window of lines, for showing and explaining it; a change the member asks for goes to page.edit, whose coding agent reads the files itself. The result carries the source_ref the file was read at. When has_more is true the file continues; read the next window from end_line + 1 to answer about the rest. A binary file answers kind: binary with no content. Not for finding which file holds something, or for making a change — that is page.list_files or page.edit.
Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with workspace_ambiguous and lists the choices — offer them, never pick one.
Request
- Base URL: https://app.goosybear.ai
- URL: https://app.goosybear.ai/api/v1/tools/page.read_file
- Auth: HTTP bearer
Headers
Your own id for this request, echoed back and recorded on the audit trail. 1–128 characters from A–Z a–z 0–9 . _ : -, starting with a letter or digit; anything else is replaced by a generated id.
Request body
Response
The call was admitted and dispatched. ok says whether the tool succeeded — a refusal the tool itself produced is still a 200, exactly as it is a successful JSON-RPC result over MCP.
Changes
No recorded changes to this operation across all 6 revisions of this API.