{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-invoke-agent-runtime-command-request-schema.json",
  "title": "InvokeAgentRuntimeCommandRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-operations-api-openapi.yml#/components/schemas/InvokeAgentRuntimeCommandRequest",
  "type": "object",
  "properties": {
    "contentType": {
      "type": "string",
      "description": "The MIME type of the input data in the request payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data."
    },
    "accept": {
      "type": "string",
      "description": "The desired MIME type for the response from the agent runtime command. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data."
    },
    "runtimeSessionId": {
      "type": "string",
      "description": "The unique identifier of the runtime session in which to execute the command. This session ID is used to maintain state and context across multiple command invocations."
    },
    "traceId": {
      "type": "string",
      "description": "The trace identifier for request tracking."
    },
    "traceParent": {
      "type": "string",
      "description": "The parent trace information for distributed tracing."
    },
    "traceState": {
      "type": "string",
      "description": "The trace state information for distributed tracing."
    },
    "baggage": {
      "type": "string",
      "description": "Additional context information for distributed tracing."
    },
    "agentRuntimeArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the agent runtime on which to execute the command. This identifies the specific agent runtime environment where the command will run."
    },
    "qualifier": {
      "type": "string",
      "description": "The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime."
    },
    "accountId": {
      "type": "string",
      "description": "The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN for agentRuntimeArn."
    },
    "body": {
      "$ref": "#/$defs/InvokeAgentRuntimeCommandRequestBody"
    }
  },
  "required": [
    "agentRuntimeArn",
    "body"
  ],
  "$defs": {
    "InvokeAgentRuntimeCommandRequestBody": {
      "type": "object",
      "properties": {
        "command": {
          "type": "string",
          "description": "The shell command to execute on the agent runtime. This command is executed in the runtime environment and its output is streamed back to the caller."
        },
        "timeout": {
          "type": "integer",
          "description": "The maximum duration in seconds to wait for the command to complete. If the command execution exceeds this timeout, it will be terminated. Default is 300 seconds. Minimum is 1 second. Maximum is 3600 seconds."
        }
      },
      "required": [
        "command"
      ]
    }
  }
}