set_memory_block_value
Rewrite a labeled memory block's value at the revision you read, using expected_revision to prevent overwriting newer writes. Publish results for other threads to observe.
Instructions
Full-rewrite a memory block's value by label, at the revision you read. Read the block with get_memory_block, change its value, and pass its revision as expected_revision. If another write landed since, the call is refused: read it again, redo the change and retry. A read-only block or a value over the block's char limit is rejected. Use this to publish a result other threads watch.
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": {
"label": "<label>",
"value": "<value>",
"expected_revision": "<expected_revision>"
},
"name": "set_memory_block_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| value | Yes | ||
| expected_revision | Yes | the block's revision when you read it |