Create or overwrite a file in the agent’s workspace filesystem
create_dirs is true, any missing parent directories are created automatically.
true, missing parent directories are created automatically.ok).file_write overwrites existing files. To modify an existing file in place, prefer Workspace: File Edit or Workspace: Multi Edit.API Key for authentication
Agent UUID
Request body for creating or overwriting a file in the agent workspace.
Successful Response
Generic response wrapper returned by agent workspace endpoints. Not every field is populated for every tool.
Result status of the workspace operation.
"ok"
Standard output captured from the workspace command. Present for bash.
Standard error captured from the workspace command. Present for bash.
Process exit code returned by the workspace. Present for bash.
File contents. Present for file_read.
File path affected by the operation. Present for file_write, file_edit, multi_edit, file_share.
Match results. Present for glob and grep.
Public CDN URL. Present for file_share.
Error message when the operation fails.