evaluate
Evaluates a C# expression within a selected stack frame, returning the result as a string with a reference for compound values.
Instructions
Evaluate a C# expression in the context of a stack frame. Returns the result as a string plus a variablesReference if the result is a compound value.
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>"
},
"name": "evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frameId | No | Frame id from stacktrace_get. Defaults to the global (no-frame) context. | |
| expression | Yes | Expression to evaluate (e.g. "user.Id", "items.Count"). |