> Call `talotrace_start_session` to test an app. Full index: /llms.txt. Errors: /reference/problems.

# Sessions

## `talotrace_start_session`

Start a QA session on an app from a brief in plain words.

Annotations: changes data, never deletes.

| Argument              | Type                             | Required | What it is                |
| --------------------- | -------------------------------- | -------- | ------------------------- |
| `project_id`          | `string \| null`                 | no       |                           |
| `message`             | `string`                         | yes      |                           |
| `target`              | `TargetUrl \| TargetApp \| null` | no       |                           |
| `effort`              | `Effort`                         | no       |                           |
| `time_budget_minutes` | `integer \| null`                | no       |                           |
| `platform`            | `SessionPlatform`                | no       |                           |
| `form_factor`         | `"phone" \| "tablet"`            | no       |                           |
| `os_version`          | `MobileOs \| null`               | no       |                           |
| `browser_size`        | `BrowserViewport \| null`        | no       |                           |
| `environment`         | `string \| null`                 | no       |                           |
| `ports`               | `array of integer`               | no       |                           |
| `test_data_refs`      | `array of string`                | no       |                           |
| `knowledge_item_ids`  | `array of string`                | no       |                           |
| `findings`            | `array of string`                | no       |                           |
| `env_files`           | `array of string`                | no       |                           |
| `env_vars`            | `array of string`                | no       |                           |
| `secrets`             | `array of SealedSecret`          | no       |                           |
| `files`               | `array of BriefFile`             | no       |                           |
| `spec_links`          | `array of string`                | no       |                           |
| `branch`              | `string \| null`                 | no       |                           |
| `change`              | `string \| null`                 | no       |                           |
| `coordinators`        | `Coordinators`                   | no       |                           |
| `idempotency_key`     | `string`                         | yes      | Reuse it to retry safely. |

```json
{
  "$defs": {
    "BriefFile": {
      "additionalProperties": false,
      "description": "A text file a start or a message attaches, such as the spec its brief asks to test.",
      "properties": {
        "content": {
          "maxLength": 262144,
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "name",
        "content"
      ],
      "type": "object"
    },
    "BrowserViewport": {
      "description": "The page's layout size, in CSS pixels.",
      "properties": {
        "height": {
          "maximum": 10000,
          "minimum": 200,
          "type": "integer"
        },
        "width": {
          "maximum": 10000,
          "minimum": 200,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "Coordinators": {
      "description": "Whether the lead may start coordinators this session, for A/B runs (QA Bench).",
      "enum": [
        "auto",
        "on",
        "off"
      ],
      "type": "string"
    },
    "Effort": {
      "enum": [
        "low",
        "medium",
        "high",
        "max"
      ],
      "type": "string"
    },
    "MobileOs": {
      "description": "The console's Operating system pick: what Limrun starts, each a device profile (orch).",
      "enum": [
        "ios_26",
        "ios_27",
        "android_15",
        "android_14"
      ],
      "type": "string"
    },
    "SealedBox": {
      "description": "A libsodium ``crypto_box_seal`` ciphertext over ``{tenant, field, value}`` (5.3).",
      "properties": {
        "key_id": {
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]{1,64}$",
          "type": "string"
        },
        "sealed": {
          "pattern": "^[A-Za-z0-9+/]{1,16384}={0,2}$",
          "type": "string"
        }
      },
      "required": [
        "sealed",
        "key_id"
      ],
      "type": "object"
    },
    "SealedSecret": {
      "additionalProperties": false,
      "description": "A secret sealed by the console with the test-data key; the server never sees it plain.",
      "properties": {
        "name": {
          "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
          "type": "string"
        },
        "note": {
          "default": "",
          "maxLength": 500,
          "type": "string"
        },
        "sealed_box": {
          "$ref": "#/$defs/SealedBox"
        }
      },
      "required": [
        "name",
        "sealed_box"
      ],
      "type": "object"
    },
    "SessionPlatform": {
      "enum": [
        "web",
        "ios",
        "android"
      ],
      "type": "string"
    },
    "TargetApp": {
      "additionalProperties": false,
      "description": "An app to test, and the build to install (``apps.build`` says how one is picked).",
      "properties": {
        "app_id": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "build_id": {
          "anyOf": [
            {
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channel": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tag": {
          "anyOf": [
            {
              "pattern": "^\\S{1,128}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "app_id"
      ],
      "type": "object"
    },
    "TargetUrl": {
      "additionalProperties": false,
      "properties": {
        "url": {
          "format": "uri",
          "maxLength": 2083,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "branch": {
      "anyOf": [
        {
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^[^\\s~^:?*\\[\\\\\\x00-\\x1f\\x7f]+$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "browser_size": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserViewport"
        },
        {
          "type": "null"
        }
      ]
    },
    "change": {
      "anyOf": [
        {
          "maxLength": 4102,
          "minLength": 1,
          "pattern": "^(uncommitted|pull_request|latest|last_24_hours|patch:\\S.*|[^\\s.-]\\S*\\.\\.\\S*)$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "coordinators": {
      "$ref": "#/$defs/Coordinators",
      "default": "auto"
    },
    "effort": {
      "$ref": "#/$defs/Effort",
      "default": "low"
    },
    "env_files": {
      "items": {
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 10,
      "type": "array"
    },
    "env_vars": {
      "items": {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
      },
      "maxLength": 10,
      "type": "array"
    },
    "environment": {
      "anyOf": [
        {
          "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "files": {
      "items": {
        "$ref": "#/$defs/BriefFile"
      },
      "maxItems": 5,
      "type": "array"
    },
    "findings": {
      "items": {
        "maxLength": 128,
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 10,
      "type": "array"
    },
    "form_factor": {
      "default": "phone",
      "enum": [
        "phone",
        "tablet"
      ],
      "type": "string"
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "knowledge_item_ids": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 2,
      "type": "array"
    },
    "message": {
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
    },
    "os_version": {
      "anyOf": [
        {
          "$ref": "#/$defs/MobileOs"
        },
        {
          "type": "null"
        }
      ]
    },
    "platform": {
      "$ref": "#/$defs/SessionPlatform",
      "default": "web"
    },
    "ports": {
      "items": {
        "maximum": 65535,
        "minimum": 1,
        "type": "integer"
      },
      "type": "array"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "secrets": {
      "items": {
        "$ref": "#/$defs/SealedSecret"
      },
      "maxItems": 10,
      "type": "array"
    },
    "spec_links": {
      "items": {
        "maxLength": 2048,
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 5,
      "type": "array"
    },
    "target": {
      "anyOf": [
        {
          "$ref": "#/$defs/TargetUrl"
        },
        {
          "$ref": "#/$defs/TargetApp"
        },
        {
          "type": "null"
        }
      ]
    },
    "test_data_refs": {
      "items": {
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 50,
      "type": "array"
    },
    "time_budget_minutes": {
      "anyOf": [
        {
          "maximum": 480,
          "minimum": 10,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "message",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_get_session`

Read a session: its status, open questions and report. It can wait for a change.

Annotations: reads only.

| Argument           | Type             | Required | What it is |
| ------------------ | ---------------- | -------- | ---------- |
| `project_id`       | `string \| null` | no       |            |
| `session_id`       | `string`         | yes      |            |
| `wait_seconds`     | `integer`        | no       |            |
| `since_changed_at` | `string \| null` | no       |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    },
    "since_changed_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "wait_seconds": {
      "default": 0,
      "maximum": 25,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "session_id"
  ],
  "type": "object"
}
```

## `talotrace_wait_session`

Wait for what changed in a running session: messages, findings, questions or its end.

Annotations: reads only.

| Argument          | Type             | Required | What it is |
| ----------------- | ---------------- | -------- | ---------- |
| `project_id`      | `string \| null` | no       |            |
| `session_id`      | `string`         | yes      |            |
| `cursor`          | `string \| null` | no       |            |
| `timeout_seconds` | `integer`        | no       |            |

```json
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    },
    "timeout_seconds": {
      "default": 45,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "session_id"
  ],
  "type": "object"
}
```

## `talotrace_list_sessions`

List sessions, most recently updated first.

Annotations: reads only.

| Argument      | Type                 | Required | What it is |
| ------------- | -------------------- | -------- | ---------- |
| `project_id`  | `string \| null`     | no       |            |
| `environment` | `string \| null`     | no       |            |
| `status`      | `StatusKind \| null` | no       |            |
| `limit`       | `integer`            | no       |            |
| `cursor`      | `string \| null`     | no       |            |

```json
{
  "$defs": {
    "StatusKind": {
      "enum": [
        "failed_start",
        "failed",
        "cancelled",
        "blocked",
        "needs_you",
        "running",
        "waiting_on_agents",
        "checking",
        "findings",
        "incomplete",
        "replied",
        "ready",
        "sleeping"
      ],
      "type": "string"
    }
  },
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "anyOf": [
        {
          "pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "anyOf": [
        {
          "$ref": "#/$defs/StatusKind"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object"
}
```

## `talotrace_list_test_cases`

List the test cases a session ran, with their results. You can filter by failure cause.

Annotations: reads only.

| Argument        | Type                           | Required | What it is |
| --------------- | ------------------------------ | -------- | ---------- |
| `project_id`    | `string \| null`               | no       |            |
| `session_id`    | `string`                       | yes      |            |
| `failure_cause` | `TestCaseFailureCause \| null` | no       |            |
| `limit`         | `integer`                      | no       |            |
| `cursor`        | `string \| null`               | no       |            |

```json
{
  "$defs": {
    "TestCaseFailureCause": {
      "description": "Why a case did not pass.",
      "enum": [
        "issues_found",
        "blocked",
        "check_inconclusive"
      ],
      "type": "string"
    }
  },
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "failure_cause": {
      "anyOf": [
        {
          "$ref": "#/$defs/TestCaseFailureCause"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    }
  },
  "required": [
    "session_id"
  ],
  "type": "object"
}
```

## `talotrace_message_session`

Send a message that steers a session. It never answers a question.

Annotations: changes data, never deletes.

| Argument          | Type                 | Required | What it is                |
| ----------------- | -------------------- | -------- | ------------------------- |
| `project_id`      | `string \| null`     | no       |                           |
| `session_id`      | `string`             | yes      |                           |
| `message`         | `string`             | yes      |                           |
| `message_id`      | `string`             | yes      |                           |
| `files`           | `array of BriefFile` | no       |                           |
| `env_files`       | `array of string`    | no       |                           |
| `env_vars`        | `array of string`    | no       |                           |
| `wait_seconds`    | `integer`            | no       |                           |
| `idempotency_key` | `string`             | yes      | Reuse it to retry safely. |

```json
{
  "$defs": {
    "BriefFile": {
      "additionalProperties": false,
      "description": "A text file a start or a message attaches, such as the spec its brief asks to test.",
      "properties": {
        "content": {
          "maxLength": 262144,
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "name",
        "content"
      ],
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "env_files": {
      "items": {
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      },
      "maxLength": 10,
      "type": "array"
    },
    "env_vars": {
      "items": {
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$",
        "type": "string"
      },
      "maxLength": 10,
      "type": "array"
    },
    "files": {
      "items": {
        "$ref": "#/$defs/BriefFile"
      },
      "maxItems": 5,
      "type": "array"
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "message": {
      "maxLength": 8000,
      "minLength": 1,
      "type": "string"
    },
    "message_id": {
      "format": "uuid",
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    },
    "wait_seconds": {
      "default": 0,
      "maximum": 25,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "session_id",
    "message",
    "message_id",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_answer_question`

Answer an open question of a session with text, the options you pick, or a skip.

Annotations: changes data, never deletes.

| Argument          | Type             | Required | What it is                |
| ----------------- | ---------------- | -------- | ------------------------- |
| `project_id`      | `string \| null` | no       |                           |
| `session_id`      | `string`         | yes      |                           |
| `question_id`     | `string \| null` | no       |                           |
| `output`          | `AnswerOutput`   | yes      |                           |
| `idempotency_key` | `string`         | yes      | Reuse it to retry safely. |

```json
{
  "$defs": {
    "AnswerOutput": {
      "additionalProperties": false,
      "description": "Exactly one of a text answer, the picked options, or a skip.",
      "properties": {
        "answer": {
          "anyOf": [
            {
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected_option_ids": {
          "anyOf": [
            {
              "items": {
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 10,
              "minItems": 1,
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "skipped": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "output": {
      "$ref": "#/$defs/AnswerOutput"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "question_id": {
      "anyOf": [
        {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    }
  },
  "required": [
    "session_id",
    "output",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_stop_session`

Stop every agent of a session. The evidence found so far is kept.

Annotations: changes data, never deletes.

| Argument          | Type             | Required | What it is                |
| ----------------- | ---------------- | -------- | ------------------------- |
| `project_id`      | `string \| null` | no       |                           |
| `session_id`      | `string`         | yes      |                           |
| `subagents`       | `boolean`        | no       |                           |
| `idempotency_key` | `string`         | yes      | Reuse it to retry safely. |

```json
{
  "additionalProperties": false,
  "properties": {
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    },
    "subagents": {
      "default": true,
      "type": "boolean"
    }
  },
  "required": [
    "session_id",
    "idempotency_key"
  ],
  "type": "object"
}
```

## `talotrace_upload_file`

Give a session a file it may use, such as a document or an image. No secrets.

Annotations: changes data, never deletes.

| Argument          | Type             | Required | What it is                |
| ----------------- | ---------------- | -------- | ------------------------- |
| `project_id`      | `string \| null` | no       |                           |
| `session_id`      | `string`         | yes      |                           |
| `file_name`       | `string`         | yes      |                           |
| `size_bytes`      | `integer`        | yes      |                           |
| `media_type`      | `string \| null` | no       |                           |
| `idempotency_key` | `string`         | yes      | Reuse it to retry safely. |

```json
{
  "additionalProperties": false,
  "properties": {
    "file_name": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "idempotency_key": {
      "description": "Reuse it to retry safely.",
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    },
    "media_type": {
      "anyOf": [
        {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "session_id": {
      "pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
      "type": "string"
    },
    "size_bytes": {
      "exclusiveMinimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "session_id",
    "file_name",
    "size_bytes",
    "idempotency_key"
  ],
  "type": "object"
}
```