patch_validate
Validate Max for Live devices and .maxpat files by checking embedded patchers, duplicate IDs, missing boxes, inlet/outlet counts, parameters, and file references before you commit changes.
Instructions
Check a device: JSON of every embedded patcher, duplicate ids, lines to missing boxes or non-existent inlets/outlets, outlettype counts, in/outlet counts vs what Max gives the object (check_io), subpatcher in/outlet counts, parameters without longname, parameter registry consistency, missing pictures/scripts/ bpatcher files, and whether the container round-trips.
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": {
"path": "<path>"
},
"name": "patch_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| check_io | No |