write
Atomically replace whole text artifacts in a project branch, with null values deleting them; requires expected_head to guard against conflicting changes.
Instructions
Atomically replace whole text artifacts; null deletes. Requires the current expected_head.
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": {
"project": "<project>",
"branch": "<branch>",
"changes": "<changes>",
"expected_head": "<expected_head>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| changes | Yes | ||
| project | Yes | ||
| expected_head | Yes |