Activate Document
activate_documentMake an already-open SolidWorks document the active one so subsequent tools act on it. Match it by window title, full path, or file name.
Instructions
Make an already-open document the active one, so the next tools act on it.
Match it by window title, full path or file name (not case-sensitive); see
list_open_documents. To open a file that isn't open yet, use open_model.
Needs: the document open in SolidWorks. Changes: the active document. Returns:
data with activated (the title) and verified (read back from SolidWorks;
null when it couldn't be read). No match is an error that lists the open
documents.
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": {
"input_data": "<input_data>"
},
"name": "activate_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The document. `title_or_path` is required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||