Micro

shell_write

shell_write

Put a file in your account's container sandbox, creating any missing directories. The only file operation that is not a shell command, because it is the one a shell is bad at: source is full of quotes and backticks and a heredoc will mangle it. The content arrives as a string and reaches the file without a shell seeing it. To read, list, search or change a file, use the shell — cat, ls, grep and sed are right there

Free. This one only touches this instance's own storage, so there is nothing to charge for.

Runs on Shell — Run commands in a sandbox.

Arguments

NameTypeWhat it is
path*stringWhere to put it, relative to /work — not to the directory your last command left you in. Missing directories are created
content*stringThe whole file. This replaces what was there

Calling it

Three doors onto the same method. /mcp is what an agent speaks, /api/v1 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"}}

Browse related tools in the service tools reference.