command_line | Types at the CAD command line exactly like a person and returns the prompt, keywords, and output. | {"text":"circle 5,2 1"} | Both |
script | Runs multiple command lines in one script, similar to a .scr file. | {"text":"line 0,0 10,0
zoom e"} | Both |
execute | Calls a command by id with structured JSON parameters and never opens a dialog. | Find the schema with list_commands. | Both |
list_commands | Lists command ids, aliases, availability, and parameter documentation; an optional filter narrows the catalog. | {"filter":"layer"} | Both |
inspect_drawing | Returns CADCraft MCP counts, extents, layers, styles, blocks, layouts, selection, undo history, and optional entities. | {"entities":true,"limit":20} | Both |
query_entities | Filters entities by type, layer, or drawing window and returns handles plus geometry. | {"type":"CIRCLE","limit":50} | Both |
find_text | Finds readable TEXT, MTEXT, attributes, and multileader content. | {"contains":"room"} | Both |
render | Returns a PNG of the full drawing or a specified drawing window for visual review. | {"width":1200,"fit":true} | Both |
new_drawing | Creates a clean metric or imperial drawing session. | {"metric":true} | Both |
open | Opens a drawing from an explicit path available to CADCraft MCP. | {"path":"C:/work/test.dxf"} | Both |
save | Saves the current drawing; a new path preserves the original. SVG, PNG, or PDF paths export instead. | {"path":"C:/work/test-copy.dxf"} | Both |
cancel | Sends Escape to stop the active command before recovery or a new operation. | No parameters | Both |
screenshot, ui_inspect, ui_click | Reads or operates the visible CADCraft interface rather than the headless drawing engine. | Use only after a bridge connection. | Desktop bridge |