write_workspace_file
Write or overwrite text content to any file in a sandboxed workspace. Automatically creates missing directories, ideal for saving notes, code, or outputs.
Instructions
Write or overwrite text content to a specific file inside the sandboxed workspace folder. Automatically creates directories if they do not exist. Use this to save notes, code, or outputs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "write_workspace_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |