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.
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"). |