ppsspp_reload_scripts
Reload the script manifest YAML and clear cached script modules to refresh available tools and scripts.
Instructions
PURPOSE: Manually reload the script manifest YAML and clear the script module cache.
USAGE: No parameters.
BEHAVIOR: MUTATING. Re-reads the manifest file and invalidates cached script modules. Reversible: re-reading an unchanged file produces an equal registry. When the exposed tool set ACTUALLY changes (tools added or removed), the server notifies the client with a tool-list-changed notification so cached tools/list results are invalidated; a no-op reload sends nothing.
RETURNS: {reloaded_count, exposed_count, manifest_path, scripts: [ScriptEntryView...]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scripts | Yes | All entries after reload (post-reload snapshot). | |
| exposed_added | Yes | Script names newly registered by this reload's sync. | |
| exposed_count | Yes | Number of exposed scripts (exposed=true) after reload. | |
| manifest_path | Yes | Absolute path to the manifest YAML. | |
| reloaded_count | Yes | Total script entries after reload (manifest-wide). | |
| exposed_removed | Yes | Script names unregistered by this reload's sync. | |
| restart_required | Yes | True when some registration changes could not be applied at runtime (SDK limitation) and a server restart is needed to fully reconcile exposed tools. | |
| exposed_registered | Yes | Number of exposed scripts ACTUALLY registered as dynamic tools after the reload sync (F4/F5: declared != registered is now surfaced instead of silently diverging). |