clearly_replace
OVERWRITE the whole body of an EXISTING artifact. Destructive: anything in it the caller did not write is replaced (the workspace keeps a version to restore). target accepts a path, key, id or exact title. For a canvas, content is the JSON-encoded array of nodes and expectedRev is checked against the saved revision. A stale-revision refusal carries the current scene. batch supports several replacements.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clearly_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Override the type when the target does not name it. | |
| batch | No | Replace several: `[{ target, content }, …]`. Max 50. | |
| title | No | New title (optional). | |
| target | No | The existing artifact: path, key, id or exact title. | |
| content | No | The whole new body: markdown for a document, CSV/TSV for a sheet, JSON-encoded nodes for a canvas. | |
| expectedRev | No | canvas only: the `canvasNodesRev` you read. Refused if the scene moved since. |