mechanism
Turn drawn links and shared joints on the active layer into pin-jointed linkages, drive them with motors, simulate motion or locking, trace paths, and play the animation.
Instructions
Kinematics / linkages: every drawn item on the active layer is a rigid link; joints shared by two items are pin joints. Pin joints to ground, put a motor on a link (rotating about a pivot joint), trace joints, then simulate (returns joint paths and whether it locks) and/or play the animation for the user. Build the links with draw first (exact shared coordinates = pin joints).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mechanism"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pins | No | ||
| play | No | ||
| clear | No | ||
| steps | No | samples per motor turn (default 72) | |
| watch | No | joints whose paths to return | |
| motors | No | ||
| traces | No | ||
| simulate | No |