record_command_result
Captures an agent-supplied command result—command, exit code, stdout, and stderr—in an evidence bundle to document execution outcomes without executing or verifying the command.
Instructions
Records the self-reported execution result of a command supplied by the agent (provenance: agent_reported). Does not execute shell commands or independently verify command 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": {
"bundleId": "<bundleId>",
"command": "<command>",
"exitCode": "<exitCode>",
"stdout": "<stdout>",
"stderr": "<stderr>"
},
"name": "record_command_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stderr | Yes | The standard error captured from the command. | |
| stdout | Yes | The standard output captured from the command. | |
| command | Yes | The exact command string that was executed. | |
| bundleId | Yes | The unique identifier of the evidence bundle. | |
| exitCode | Yes | The exit code returned by the command execution. | |
| workspaceName | No | Optional registered workspace/package name (defaults to primary root). | |
| workspacePath | No | Optional workspace path hint. |