write_file
Create a new file or completely overwrite an existing one with new content, automatically generating any missing parent directories. Use it to save code, docs, or config files to a specified path.
Instructions
Create or completely overwrite a file with new content. Creates parent directories if needed.
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 | ||
| content | Yes |