write_file
Creates or replaces files and parent directories, with overwrite or append controls for existing files.
Instructions
Create or replace a file. Parent directories are created. Set Overwrite or Append when the file exists.
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 | Absolute path of the file. | |
| Append | No | Append to an existing file. | |
| Content | Yes | Full contents to write. | |
| Overwrite | No | Replace an existing file. | |
| ArtifactMetadata | No | Ignored. Omit for ordinary files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |