Recent commands (history)
get_recent_commandsReturns the commands recently run on one server through Opservo (terminal, quick actions, approved fixes, automation), sorted newest to oldest, with source, exit code and the start of their output.
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": {
"agent_id": "<agent_id>"
},
"name": "get_recent_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max commands to return (1-50, default 20). | |
| agent_id | Yes | The server/agent UUID to query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed: why, in plain English (unknown server, server from another workspace, not a Kubernetes cluster). | |
| commands | No | Newest first. |