Solve JavaScript constant constraints
js_solve_constraintsSimplify JavaScript code by folding constant binary expressions and pruning literal boolean branches, without executing the code.
Instructions
Fold safe literal binary expressions and prune literal boolean branches without executing supplied code.
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": {
"code": "<code>"
},
"name": "js_solve_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| maxIterations | No |