vw_lint
Checks Vectorworks Python scripts without running them, flagging syntax errors, wrong vs.* arguments, deprecated calls, and crash-prone functions before execution.
Instructions
Check Python meant for Vectorworks without running it.
Finds syntax errors, vs.* calls with a wrong number of arguments, deprecated calls (these would open the blocking "Script Errors" window) and functions a published safety sweep found to crash or hang Vectorworks or to open a dialog; unknown vs.* names are warnings. Works without Vectorworks running. Argument types and values are not checked here (the bridge checks types when the code runs). vw_exec_python and vw_exec_python run this check themselves, so call it directly only to check a script you do not intend to run yet. Returns {ok, errors, warnings, api}.
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": "vw_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Python source to check. Pass either code or path, not both. | |
| path | No | Path of a Python script file on this Mac to check instead of code, for example a menu command script. Pass either code or path, not both. |