answer_dialog
Presses a specified SolidWorks dialog button, such as OK or Close, then waits for the held call and returns its result; optionally targets a dialog by handle and sets a wait timeout.
Instructions
Press button (its caption, e.g. 'OK', 'Close', "Don't Rebuild", '재생성 안 함')
on a SolidWorks dialog, then wait up to wait_s for the call that was on hold
and return its result. hwnd (from list_dialogs) picks one of several
dialogs. Without button it only waits for the call on hold.
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": "answer_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | ||
| button | No | ||
| wait_s | No |