write_file
Overwrite a file's full content by specifying its path and new content. Optionally allow writing outside the project root with explicit approval.
Instructions
Overwrite file content (Full).
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New content | |
| filePath | Yes | File path | |
| allow_external_access | No | Set to true to allow writing files outside the project root. User must explicitly approve this action. |