Skip to main content
List child project-agent runs for a parent conversation lineage.

Tool details

FieldValue
Namelist_child_agent_runs_by_parent_conversation
GroupConversations

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "conversation_id": {
      "type": "string",
      "format": "uuid",
      "description": "Conversation identifier that scopes the request."
    },
    "spawned_from_tool_call_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Provide the spawned from tool call id."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque pagination cursor returned by a previous response."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Maximum number of results to return."
    }
  },
  "required": [
    "conversation_id"
  ],
  "additionalProperties": false,
  "description": "Input schema for the list_child_agent_runs_by_parent_conversation tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "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."
      },
      "description": "Agent runs for the requested page."
    },
    "page_info": {
      "type": "object",
      "properties": {
        "self": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor representing the current page."
        },
        "first": {
          "type": "null",
          "description": "Always null because these MCP pagination flows do not expose a first-page cursor."
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page, or null when there are no more results."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the previous page, or null when unavailable."
        }
      },
      "required": [
        "self",
        "first",
        "next",
        "prev"
      ],
      "additionalProperties": false,
      "description": "Pagination cursors for the agent run list."
    }
  },
  "required": [
    "data",
    "page_info"
  ],
  "additionalProperties": false,
  "description": "Paginated agent run list response.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}