Evaluate steps
evaluate_stepsNeeds sign-in: Evaluate a sequence of LaTeX statements in order, in one shared scratch scope (over the definitions of the document named by documentId, if any), then discard the scope. A definition (a := 5, f(x) := x^2) is visible to later statements of the same call; nothing persists after the call and no document is changed. Use it for a multi-step calculation, or to verify candidate solutions (bind x := 2, then evaluate x^2 = 4). Evaluation stops at the first failing statement (stoppedAt is its 0-based index). Previous answers (%) are not available; name intermediates with :=.
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": {
"statements": "<statements>"
},
"name": "evaluate_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | No | The id of a document (from list_documents or search_documents). With it, the expression sees that document's definitions; without it, an empty scope. | |
| statements | Yes | LaTeX statements evaluated in order in one shared, discarded-at-return scope. Definitions bind for later statements in this call only. |