vw_vs_lookup
Search the Vectorworks vs.* scripting API by keyword to find function signatures, parameter types, and safety flags before writing Python code.
Instructions
Search the vs.* scripting API of the running Vectorworks by keyword.
Read-only (one small job). Use it before writing code for vw_exec_python: it shows the signature the bridge will enforce. Returns [{name, doc (signature and description as Vectorworks ships them), types (the parameter types the bridge checks, "name:TYPE, ..." plus the codes), safety (null, or "crash" / "hang" / "interactive" / "document_level" from the safety sweep: crash and hang are refused, interactive needs allow_dialogs)}].
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": {
"query": "<query>"
},
"name": "vw_vs_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matches, best name matches first. Default 25. | |
| query | Yes | Words to look for in function names and their built-in docs, all of which must match, such as "record field", "symbol insert" or "LDevice". Case-insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |