run
Execute a PlayStation 2 ELF or .irx module under the server root, optionally wait for a text marker or timeout, and return its state and printed output.
Instructions
Runs a program under the server's root, served to the target as host:: an ELF on
the EE, or, if its name ends in .irx, a module on the IOP. Waits up to timeout seconds
for it to end, or returns as soon as it has printed the text until, if that's given.
Returns its state and everything it printed as output. For an ELF the state is
"exited" with an exit_code, "crashed" with the exception (what, where and the
registers), or "running" if it hasn't ended, in which case output and stop carry on
from there. Not every target can tell that a program has ended: one that can't leaves it
"running", and until is the way to know it's done. For a module the state is "loaded",
with its number and what its start returned.
On a target with the debug capability an ELF can be held instead of lost. hold is
"exception", for a program that's kept where it would have crashed, or "entry", for one
kept at its first instruction too; any breakpoint set does the first by itself. The
state is then "held", with held saying why and where, and the program waits, whole,
for registers, read_memory, step and resume, or for stop to end it.
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": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hold | No | never | |
| path | Yes | ||
| until | No | ||
| timeout | No | ||
| arguments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||