write
Create or overwrite a file at a specified path, auto-generating any absent parent directories.
Instructions
Writes a file, automatically creating any missing parent directories. Completely overwrites the file if one already exists.
IMPORTANT: Because it overwrites entirely, ensure you have the complete file context before modifying existing files. For partial changes to existing files, prefer using the edit tool.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to the file to write. | |
| content | Yes | The complete content to write to the file. |