record_command_exit
Record the exit code of a command that was generated and executed.
Instructions
Record the exit code of a command that was generated and executed.
STRONG signal: a real subprocess produced a real exit code. Convention: exit_code == 0 → "success", anything else → "failure".
Args: request_id: the "request_id" field from the optimize_context response exit_code: subprocess exit code; 0 = success command: optional short representation of what was run
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": {
"request_id": "<request_id>",
"exit_code": "<exit_code>"
},
"name": "record_command_exit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | ||
| exit_code | Yes | ||
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |