Pick material in KOMPAS
material_pickOpens KOMPAS's material handbook dialog so you can choose a material, then optionally assigns it to a part with backup and mass check.
Instructions
Open KOMPAS's own material handbook dialog so the USER chooses the material (the handbook is the
source of truth for name and density). Tell the user the dialog is open and wait. If doc is given,
the material is assigned to the part with a backup and a mass check (receipt). NOTE: KOMPAS does not
record material changes in Undo (Ctrl+Z will not revert it); to revert call
part_set_properties(material_id=restore_material_id). The choice is remembered: later
part_set_properties(material_id=…) assigns it without the dialog.
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": "material_pick"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | If given, assign the picked material to this part |