Repository navigation
[Agents] Document @cloudflare/computer workspace - #34357
Conversation
Add /agents/tools/filesystem/, placed above Sandbox in the Tools sidebar. It covers adding a Cloudflare Computer workspace to a Durable Object, giving a model the workspace file tools with createAITools(), and optionally running JavaScript with WorkerJavaScriptBackend.
AI Review✅ Reviewed 👉 Fix in your agent 👈Fix the following review findings in PR #34357 (https://github.com/cloudflare/cloudflare-docs/pull/34357).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.
After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.
The comment must come before the commit because the next review reads PR comments.
## Style Guide
- S-0116a7d0 | src/content/docs/agents/tools/filesystem.mdx:381 | Use <TypeScriptExample> instead of a raw ```js``` fence
This file is under `src/content/docs/`, and this bare ` ```js ` fence contains an application module that runs on the Workers runtime (Dynamic Worker) and exports a `default` async function, matching the TypeScriptExample criteria. Per the code-blocks component-alternatives rule, use `<TypeScriptExample>` instead of a raw JS fence so the example renders with a TS/JS tab pair.
- S-14ce784b | src/content/docs/agents/tools/filesystem.mdx:461 | Use <TypeScriptExample> instead of a raw ```js``` fence
This bare ` ```js ` fence in a `src/content/docs/` file shows a module that imports from `ws:orders` and exports a `default` async function — the same pattern the code-blocks rule targets. Use `<TypeScriptExample>` instead of a raw JS fence, consistent with the other code examples on this page.Style Guide
Resolved (2) · Dismissed (0)
Commands
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://agents-computer-filesystem.previews.developers.cloudflare.com (commit cf8fa40)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
|
Preview URL: https://cf8fa400.preview.developers.cloudflare.com Files with changes (up to 15)
|
Co-authored-by: Aron <263346377+aron-cf@users.noreply.github.com>
- Cover the Think, AI SDK, Pi, and OpenCode harnesses, with a note pointing to each and typed adapters for Pi Durable and OpenCode. - Update the Think guidance for the Computer workspace that Think now includes (PR #34297): no useThink, workspaceBash, or createAITools(). - Add an API reference for Workspace, workspace.fs, workspace.runtime, the tool functions, and the host modules, and link to it. - Link the Worker Loader binding to /dynamic-workers/ directly, which fixes the nimbus/internal-link redirect error. - Fix the description, the "accesing" and "it's" typos, and wording.
Summary
Add a section on filesystem under the Tools subsection.
Screenshots (optional)
Documentation checklist