onshape_eval_featurescript
Evaluates a FeatureScript lambda against a Part Studio and returns the computed result, enabling custom geometry queries and feature logic checks.
Instructions
Evaluate a FeatureScript lambda against a Part Studio and return the result. The script must be a
function, e.g. function(context is Context, queries) { return size(evaluateQuery(context, qAllModifiableSolidBodies())); }
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": {
"did": "<did>",
"wvm": "<wvm>",
"wvmid": "<wvmid>",
"eid": "<eid>",
"script": "<script>"
},
"name": "onshape_eval_featurescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did | Yes | ||
| eid | Yes | ||
| wvm | Yes | ||
| wvmid | Yes | ||
| script | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |