write_file
Write or overwrite a file with new content, automatically creating parent directories as needed.
Instructions
Write or overwrite a file with new content. Creates parent directories automatically.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| content | Yes | Content to write | |
| workspace_root | No | Workspace root directory (optional) |