prompt_user
Pauses CAD execution to request human mouse clicks, coordinate picks, entity selection, or command-line input for human-in-the-loop workflows. Returns picked coordinates, handles, typed text, or cancellation status.
Instructions
Prompt the human user for interactive mouse clicks, coordinate picking, or command line input in CAD.
Behavior:
Mutation: Strictly read-only for drawing geometry; does not alter drawing database.
Persistence: No persistent side effects or disk modifications.
Side Effects: Pauses execution to display prompt message in CAD command line and crosshair cursor, awaiting user mouse click or keyboard input. Captures ESC / cancellation gracefully.
Usage Guidelines:
When to Use: Call for Human-in-the-Loop workflows whenever the AI needs the user to click a coordinate on screen, pick an entity visually with the crosshairs, measure a distance interactively, or confirm a string prompt.
Sibling Routing / Alternatives:
For automated programmatic coordinate queries without user intervention, use
inspect_drawing.For selecting entities programmatically by layer/color/type, use
manage_entities(operations="select|...").For launching an interactive web-based canvas viewer in the browser, use
show_drawing_viewer.
Shorthand Grammar:
point|message|[base_x,base_y]: Prompts user to click a point in CAD viewport (e.g. point|Click door hinge point).
entity|message: Prompts user to click an entity on screen (returns entity handle, type, and layer).
distance|message|[base_point]: Prompts user to pick two points or measure distance in CAD.
string|message: Prompts user to type text in CAD command bar.
Parameters:
input: Shorthand string (action|message|optional_args), dictionary, or list.
Returns: JSON string containing user response, picked coordinates (x, y, z), picked entity handles, or cancellation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |