write_file
Overwrite a file's entire content or create it if missing. Use confirm=true to replace an existing file.
Instructions
Overwrite a file's entire content (creating it if it doesn't exist).
If the file already exists, confirm=True is required (unless the server's require_overwrite_confirmation setting is disabled).
Args: path: Path relative to the workspace root. content: New full text content of the file. confirm: Must be True to overwrite an existing file.
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 | ||
| confirm | No | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||