write_file
Create a UTF-8 file or explicitly overwrite one with SHA-256 verification and return a diff, so you can safely write and confirm changes inside a scoped workspace.
Instructions
Create a UTF-8 file or explicitly overwrite one with expected_sha256; returns a diff.
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 | ||
| dry_run | No | ||
| overwrite | No | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||