Set Variable
rlm_set_variableSave intermediate results during recursive language model processing by storing variables in the session for later retrieval.
Instructions
Store a variable in the session for later use.
Use this to save intermediate results during RLM processing.
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": {
"name": "<name>"
},
"name": "rlm_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name | |
| value | No | Variable value (any JSON-serializable value) | |
| session_id | No | Session ID |