write_sketch_file
Creates or replaces a UTF-8 sketch file, using the expected SHA-256 from get_sketch to prevent unsafe overwrites.
Instructions
Create a new UTF-8 sketch file or replace an existing file with its SHA-256 from get_sketch.
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": {
"sketch": "<sketch>",
"file": "<file>",
"content": "<content>"
},
"name": "write_sketch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| sketch | Yes | ||
| content | Yes | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| warnings | No | ||
| request_id | No | ||
| next_actions | No |