variables_set
Assign a new value to a variable or property during debugging to test potential fixes without restarting the application.
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 |
|---|---|---|---|
| expression | Yes | The lvalue expression to assign to (e.g. "userId", "user.Name"). | |
| 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. |