attach_memory_block
Attaches an existing memory block, identified by label, to a thread as a shared object without changing its value; unknown labels are refused.
Instructions
Attach a memory block, named by label, to a thread so the thread carries it as a shared object: how a parent hands a block to a child. Returns {attached: true} when newly attached and {attached: false} when it was already attached. The block must already exist in your workspace (create_memory_block makes one; an unknown label is refused), and attaching never changes its value. list_thread_memory_blocks shows what a thread carries and detach_memory_block removes the link. Requires workspace:write.
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": {
"thread_id": "<thread_id>",
"label": "<label>"
},
"name": "attach_memory_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label of an existing memory block in your workspace (surrounding whitespace is ignored). An unknown label is refused. | |
| thread_id | Yes | UUID of the thread to attach the block to. You must be able to read it. |