create_tool
Creates a cutting tool in the open Mastercam part with type, diameter, rpm, and feed, setting its speeds and feeds as defaults for toolpaths that use it.
Instructions
Create a tool in the open part (units follow the part). Its rpm/feeds become the default for toolpaths that use it.
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": {
"type": "<type>",
"diameter": "<diameter>"
},
"name": "create_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpm | No | ||
| feed | No | ||
| name | No | ||
| type | Yes | flat_endmill, bull_endmill, ball_endmill, drill, spot_drill, center_drill, tap_rh, tap_lh, reamer, bore_bar, counterbore, countersink, chamfer_mill, face_mill, slot_mill, thread_mill, high_feed_mill, engrave, taper_mill, lollipop, dovetail, radius_mill | |
| flutes | No | ||
| length | No | Overall length | |
| number | No | Tool number (default: next free) | |
| threads | No | Taps: threads per inch (pitch in mm for metric parts). Required for taps to post a feed | |
| diameter | Yes | ||
| tip_angle | No | ||
| plunge_feed | No | ||
| flute_length | No | ||
| retract_feed | No | ||
| corner_radius | No | ||
| length_offset | No | ||
| diameter_offset | No | ||
| shoulder_length | No |