set_state_var
Add or replace a flow-scoped state variable within an Easy Spec project.
Instructions
Add or replace a flow-scoped state variable (a let declared at the top of the generated function).
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": {
"flowId": "<flowId>",
"name": "<name>",
"initial": "<initial>"
},
"name": "set_state_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| flowId | Yes | ||
| initial | Yes | ||
| project | No | Path to the project root (same folder the side panel connects to). Defaults to the EASYSPEC_PROJECT environment variable if omitted. |