set_var
Set a session variable for later instructions to reference as {{name}}; in a learn session it becomes a flow variable that build and check steps bind with vars. Use env markers for secrets.
Instructions
Set a session variable that later instructions reference as {{name}}; in a learn session it becomes a flow variable that build/check bind with vars. Not for secrets (use {{env:NAME}} markers).
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>",
"value": "<value>"
},
"name": "set_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory. | |
| name | Yes | Variable name. | |
| value | Yes | Variable value. | |
| session | No | Browser session name (default "default"). Each session is its own browser and daemon. |