AgentSessionDetail

A request or response body; the type column links to the schemas it refers to.

AgentSessionDetail

FieldTypeRequiredDescription
sessionAgentSessionyes—
messagesarray of AgentMessageyes

The transcript, oldest first.

jsonExample
{
  "session": {
    "id": "8d3f2c3e-0c4b-4f8e-9a51-2d8c6f0b1a7e",
    "title": "Overdue forklift certifications",
    "model_id": "claude-opus-5-5",
    "model_label": "Claude Opus 5.5",
    "thinking_level": "high",
    "status": "idle",
    "preview": "string",
    "last_error": "string",
    "has_sandbox": true,
    "created_at": "2026-11-08T12:00:00.000Z",
    "last_activity_at": "2026-11-08T12:00:00.000Z",
    "archived_at": null,
    "granted_scopes": [
      "records:read",
      "certifications:read"
    ]
  },
  "messages": [
    {
      "id": "8d3f2c3e-0c4b-4f8e-9a51-2d8c6f0b1a7e",
      "role": "user",
      "content": "string",
      "parts": [
        {
          "type": "text",
          "text": "string",
          "tool_call_id": "string",
          "tool_name": "mcp__lrs__list_learning_records",
          "input": null,
          "output": null,
          "error": "string",
          "image": {
            "id": "3a7c1e52-9f0b-4c2d-8e61-5b4f0a9d2c18",
            "content_type": "image/png",
            "width": 1280,
            "height": 720,
            "alt": "Bar chart of forklift certifications lapsing each month.",
            "caption": null,
            "url": "string"
          },
          "attachment": {
            "id": "5e0c9a14-7b2d-4c38-9f61-0a3d8e2b7c45",
            "file_name": "forklift-certificate.pdf",
            "content_type": "application/pdf",
            "size_bytes": 482113,
            "width": 0,
            "height": 0,
            "url": "string"
          }
        }
      ],
      "error": "string",
      "created_at": "2026-11-08T12:00:00.000Z"
    }
  ]
}