ppsspp_run_script
Run a registered diagnostic script by name on the PPSSPP emulator, with input validated against the script's schema. Use for executing debugging routines that inspect or control emulator state.
Instructions
PURPOSE: Invoke a manifest-registered diagnostic script by name with validated input.
USAGE: name (see ppsspp_list_scripts; skeleton scripts return not_implemented); input dict validated against the script's Pydantic model; session_id required when the script declares requires_ppsspp (missing → SESSION_NOT_FOUND).
BEHAVIOR: STATE-CHANGE. Runs manifest-registered script code. Unknown names → SCRIPT_NOT_FOUND.
RETURNS: {name, output, output_model}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script name (must appear in manifest). | |
| input | No | Script input as a JSON dict. Validated against the script's Pydantic Input model. Pass {} for scripts with no required fields. | |
| session_id | No | Optional session ID. Enforced by this tool for scripts with requires_ppsspp=true (fails with SESSION_NOT_FOUND when none resolves). Priority: this parameter > an optional session_id field on the script's Input model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Script name that was executed. | |
| output | Yes | Script output (serialized Pydantic Output model). | |
| output_model | Yes | Pydantic Output model class name (for type introspection). |