Insert a standard part
insert_partPuts an accurate model of a standard part from ProtoJoint's library into the design as a part of its own, at the sizes of its maker's drawing: a circuit board with its connectors, components and mounting holes, a servo with its horn, a motor with its shaft, a wheel, a linear rail and carriage, drone parts, sensors, a battery - each body named and coloured as it looks. It returns, in world coordinates: every mounting hole (centre, the axis it goes into the part along, diameter, depth, thread, counterbore), each connector and component (box, which way a connector opens - faces - and how far it stands past a board's edge - overhang), the axes its shafts turn or its carriage runs about (a joint goes there), its mounting faces (origin and outward normal), its sensor (type, optical centre or measuring origin, the way it looks and its up, field of view, range), its mass, the space it takes (envelope) and notes. Design the openings, brackets, standoffs and clearances from these numbers, never from memory: insert the part first, then design round it, and check the fit against its bodies. Each part's origin and axes are in its entry below; position puts the origin, orient tips the part (where its own +z and +y point), rotate then turns it about Z; values sizes a part with parameters. Library: raspberry_pi_5 (Raspberry Pi 5): single-board computer, board 85 x 56 x 1.4, four M2.5 holes 58 x 49; origin the lower-left corner of the board underside; feetech_sts3215 (Feetech STS3215): serial-bus servo of the SO-100 / SO-101 arms, case 45.2 x 24.7 x 35; origin on the output axis at the horn face, +z out of the horn, the case toward +x; dynamixel_xl430 (ROBOTIS Dynamixel XL430-W250-T): smart servo, case 28.5 x 46.5 x 34; origin on the output axis at the horn face, +z out of the horn, +y toward the end the axis is near; jga25_370 (JGA25-370 gear motor): DC gear motor 12 V, 1:34 (gearbox Ø25 x 21, can Ø24.4); origin at the gearbox face centre, +z along the 4 mm D shaft; two M3 holes 17 apart; pololu_wheel_80x10 (Pololu wheel 80 x 10 mm): robot wheel Ø80 x 10 with a 4 mm D-shaft insert and clamp plate; origin at the wheel centre on its inner face, +z along the axle away from the motor; pololu_ball_caster_38 (Pololu ball caster 3/8"): ball caster, Ø9.5 steel ball, 10.16 from its mounting face to the ground, two M2 holes 13.46 apart; origin at the centre of its mounting (top) face, +z up, the ball below; nema17_40 (NEMA 17 stepper 40 mm): stepper motor 42.3 x 42.3 x 40 (17HS4401S, 1.8 deg, 1.7 A), Ø5 D shaft 24 long; origin at the front face centre, +z along the shaft; four M3 on 31 x 31; gt2_pulley_20t (GT2 pulley 20T 5 mm bore): GT2 timing pulley, 20 teeth (pitch Ø12.73), 6 mm belt, 5 mm bore, Ø16 x 16; origin at the centre of its hub end, +z along the bore; mgn12_rail (MGN12 linear rail): miniature linear rail 12 x 8 cut to length (values.length, 50 to 2000), M3 counterbored holes every 25; origin at one end on the centre of its underside, +x along it; mgn12h_carriage (MGN12H carriage): linear guide block for the MGN12 rail, 45.4 x 27, its top 13 above the rail's underside; origin on the rail's centre line at its underside, under the middle of the block, +x along the rail; four M3 on 20 x 20; tmotor_v2207 (T-Motor Velox V2207 V2): brushless FPV drone motor 2207 (Ø27.5 x 31.35), M5 prop shaft, four M3 on a 16 circle; origin at the centre of its base (mounting face), +z along the shaft; hqprop_5x43x3 (HQProp 5x4.3x3 propeller): 5 inch three-blade FPV propeller (Ø127, 4.3" pitch), hub Ø13.2 x 7 on a 5 mm bore; values.hand: "ccw" (the default) turns anticlockwise seen from above, "cw" clockwise - a quadcopter takes two of each; origin at the centre of the hub's underside, +z the way it pulls; rplidar_c1 (Slamtec RPLIDAR C1): 360-degree DTOF lidar, 55.6 x 55.6 x 41.3, scan plane 29.8 up, four M2.5 on 43 x 43; origin at the centre of its underside, +z up, +x its 0-degree front (the cable at -x); rpi_camera_3 (Raspberry Pi Camera Module 3): camera board 25 x 23.9 (12 MP, 66 x 41 degrees), lens on +z; origin the lower-left corner of the board underside, its cable connector along the lower edge (y 0); realsense_d435i (Intel RealSense D435i): stereo depth camera with IMU, 90 x 25 x 25; origin on the 1/4-20 tripod hole's axis at the underside, +x the way it looks, +y toward the RGB camera end, +z up; adafruit_bno085 (Adafruit BNO085 IMU): 9-DOF IMU board that fuses its sensors on the chip, 25.4 x 22.9, two STEMMA QT sockets; origin the lower-left corner of the board underside, the chip's x along +x; lipo_3s_2200 (LiPo 3S 2200 mAh): LiPo battery 3S 11.1 V 2200 mAh, 108 x 34 x 21.7, XT60 and balance leads out of the -x end; origin at the centre of its underside.
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": {
"part": "<part>"
},
"name": "insert_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The part's name (default the part's own). | |
| part | Yes | ||
| under | No | Put it on this part, to move with it. | |
| orient | No | Tips the part: where its own +z and +y point in the world, e.g. {z: '+x'} lays a servo on its side with its output axis along +x, a camera to look along +x. y defaults to +y while z is up or down, else to +z. Leave out to keep the part upright. | |
| rotate | No | Degrees about Z after orient: 0, 90, 180 or 270. | |
| values | No | Parameter values of a part that has them, e.g. {"length": 400} for mgn12_rail (its range in its entry), {"hand": "cw"} for a clockwise hqprop_5x43x3. | |
| in_part | No | Points and directions in this part's coordinates, as it stands now; default the world. | |
| position | No | Where the part's origin goes, [x, y, z] in mm (default the world origin). |