Get Command Output
get_command_outputRetrieve the output of a previously run Laravel Forge site command to inspect results, logs, or failures. Use server, site, and command IDs from list_site_commands.
Instructions
The output of a command previously run from a site's Commands panel. Get the command id from list_site_commands. NOTE: this replays whatever a human chose to run, so it is the tool most likely to contain deliberately-dumped secrets — credential-shaped text is scrubbed on a best-effort basis, but do not treat the result as sanitised.
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": {
"server": "<server>",
"site": "<site>",
"command": "<command>"
},
"name": "get_command_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id from list_sites. | |
| server | Yes | Server id the site is on. | |
| command | Yes | Command id from list_site_commands. | |
| tail_lines | No | Return only the last N lines, where failures appear (default 200). Output is additionally capped by character count, so a very long single line cannot flood the response. | |
| organization | No | Organisation slug. Optional when the server has a default configured. |