Skip to main content
Get a project-agent run by conversation and run ID.

Tool details

FieldValue
Nameget_agent_run
GroupConversations

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "conversation_id": {
      "type": "string",
      "format": "uuid",
      "description": "Conversation identifier that scopes the request."
    },
    "run_id": {
      "type": "string",
      "minLength": 1,
      "description": "Run identifier that scopes the request."
    }
  },
  "required": [
    "conversation_id",
    "run_id"
  ],
  "additionalProperties": false,
  "description": "Input schema for the get_agent_run tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "description": "Agent run identifier."
    },
    "conversation_id": {
      "type": "string",
      "description": "Conversation that owns the run."
    },
    "parent_conversation_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent conversation identifier when the run was spawned from another conversation."
    },
    "message_id": {
      "type": "string",
      "description": "Message identifier that created or currently anchors the run."
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Project identifier associated with the run."
    },
    "requested_by_user_id": {
      "type": "string",
      "description": "User identifier that requested the run."
    },
    "agent_id": {
      "type": "string",
      "description": "Agent identifier used for the run."
    },
    "status": {
      "type": "string",
      "description": "Lifecycle status of the run."
    },
    "source_target_kind": {
      "type": [
        "string",
        "null"
      ],
      "description": "Source target type used to resolve editable project state."
    },
    "source_target_environment_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Environment identifier used as the source target."
    },
    "source_target_branch_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Branch identifier used as the source target."
    },
    "runtime_target_kind": {
      "type": [
        "string",
        "null"
      ],
      "description": "Runtime target type used to execute the run."
    },
    "runtime_target_environment_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Environment identifier used as the runtime target."
    },
    "runtime_target_branch_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Branch identifier used as the runtime target."
    },
    "parent_run_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Parent run identifier when the run was spawned from another run."
    },
    "spawned_from_message_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Message identifier that spawned this child run."
    },
    "spawned_from_tool_call_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tool call identifier that spawned this child run."
    },
    "input_anchor_message_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Message identifier used as the run input anchor."
    },
    "handoff_message_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Message identifier used for handoff back into the conversation."
    },
    "resolved_deployment_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Deployment identifier selected for the run, when applicable."
    },
    "latest_event_id": {
      "type": "number",
      "description": "Highest persisted event identifier for the run."
    },
    "waiting_tool_call_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tool call identifier the run is currently waiting on, when blocked."
    },
    "waiting_tool_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Tool name the run is currently waiting on, when blocked."
    },
    "terminal_error_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Terminal error code when the run failed."
    },
    "terminal_error_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Terminal error message when the run failed."
    },
    "created_at": {
      "type": "string",
      "description": "Timestamp when the run was created."
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Timestamp when the run started executing."
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Timestamp when the run finished."
    }
  },
  "required": [
    "run_id",
    "conversation_id",
    "parent_conversation_id",
    "message_id",
    "project_id",
    "requested_by_user_id",
    "agent_id",
    "status",
    "source_target_kind",
    "source_target_environment_id",
    "source_target_branch_id",
    "runtime_target_kind",
    "runtime_target_environment_id",
    "runtime_target_branch_id",
    "parent_run_id",
    "spawned_from_message_id",
    "spawned_from_tool_call_id",
    "input_anchor_message_id",
    "handoff_message_id",
    "resolved_deployment_id",
    "latest_event_id",
    "waiting_tool_call_id",
    "waiting_tool_name",
    "terminal_error_code",
    "terminal_error_message",
    "created_at",
    "started_at",
    "finished_at"
  ],
  "additionalProperties": false,
  "description": "Agent run record returned by conversation run tools.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}