Work it out
calcWorks numbers out instead of reckoning or rounding them. expressions: name -> expression, in order; a later one may use earlier names and the design's parameters. Numbers take units (mm, cm, in; deg, rad; bare: mm, or degrees for an angle); + - * / ^; [x, y, z] vectors; sin cos tan (degrees), asin acos atan atan2 (to degrees), sqrt abs pow min max hypot round, len norm dot cross angle dist rotate(v, axis, deg); world('part', p) and local('part', p) between a part's coordinates and the world, dir_world and dir_local for directions, uv(sketch_id, p) and xyz(sketch_id, [u, v]), joint_at, joint_axis, joint_value('joint'), volume('body'). Any number a tool takes may be such an expression ("r*cos(30deg)"): its answer says what it came to.
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": {
"expressions": "<expressions>"
},
"name": "calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expressions | Yes | name -> expression |