variables_set
Assign new values to variables or lvalue expressions during a debugging session to test fixes and explore state changes.
Instructions
Set the value of a variable or any lvalue expression (e.g. "userId" or "user.Name"). The agent can use this to test fixes by mutating state mid-run.
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": {
"expression": "<expression>",
"value": "<value>"
},
"name": "variables_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The new value as a C# expression (e.g. "42", "\"hello\""). | |
| frameId | No | Frame id from stacktrace_get. Defaults to the global (no-frame) context. | |
| expression | Yes | The lvalue expression to assign to (e.g. "userId", "user.Name"). |