shell_write
shell_write
Put a file on your machine, creating any missing directories. Use this rather than shell redirection for anything with quotes or backticks in it, which is most source code
Free. This one only touches this instance's own storage, so there is nothing to charge for.
Runs on Shell — A machine of your own: run commands, keep files, build things.
Arguments
| Name | Type | What it is |
|---|---|---|
path* | string | Where to put it, under /work. Missing directories are created |
content* | string | The whole file. This replaces what was there |
Calling it
Three doors onto the same method. MCP is what an agent speaks, REST is what a program speaks, and the answer is identical.
{"id":1,"jsonrpc":"2.0","method":"tools/call","params":{"arguments":{"content":"content","path":"path"},"name":"shell_write"}}Try it in the playground.


