Validate a Perch package
perch_validateValidate a Perch mod package: verify mod.json schema, entry, Lua parsing, widget declaration, and display types. For the final verdict, run the package with perch_run.
Instructions
Checks a package folder: mod.json against the manifest schema (id = folder name, no legacy widgets/settings keys, known scopes), the entry exists, every .lua parses, the entry declares a widget, and display types exist in the vocabulary. The definitive check is Perch's own loader — run the package (perch_run) and read Settings → Installed mods for the loader's verdict.
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": {
"package_dir": "<package_dir>"
},
"name": "perch_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_dir | Yes | Absolute path of the package folder (the one holding mod.json) |