rex_block_close
Closes a selected Rex block, ends its program, and closes the window if it was the last block; never closes idle blocks or other blocks.
Instructions
Close a block and end its program (rex block close). Rex closes the window too when that was its last block. Never closes a block for being idle, and never closes any other block.
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": {
"block": "<block>"
},
"name": "rex_block_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | Block label, ID, or ID suffix | |
| session | No | Session label or ID |