session_add_variable
Add a variable to an active solver session for constraint solving. Supports types: integer, real, Boolean, and bit-vector.
Instructions
Add a variable to the current solver session.
Supported types: int, real, bool, bitvec (with bits parameter)
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>",
"var_type": "<var_type>"
},
"name": "session_add_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Session identifier (default: 'default') | default |
| name | Yes | Variable name | |
| var_type | Yes | Variable type | |
| bits | No | Bit width for bitvec type (default: 32) |