> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oqoqo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Web agent and Brand tools

> MCP tools for web agents and Brand: list the web agents, read and set brand details, analyze brand for an experiment, and read its brand results and one run's answer.

List a project's [web agents](https://docs.oqoqo.ai/experiments/web-agents.md) (Ultra, private beta), read and set your [Brand](https://docs.oqoqo.ai/experiments/brand.md) details (private beta), and read how the answers went. To launch an experiment of web agents, pass a plan of kind `web` to [`launch_experiment`](https://docs.oqoqo.ai/mcp-server/experiments#launch_experiment). To list them, pass `kind` `web` to [`list_experiments`](https://docs.oqoqo.ai/mcp-server/experiments#list_experiments).

* **Badges** are explained under [Approvals](https://docs.oqoqo.ai/mcp-server/overview.md#approvals).
* **`project_id`** is optional on most tools; without it, the server picks a project for that call only ([Projects](https://docs.oqoqo.ai/mcp-server/overview.md#projects)).
* **`expected_organization_id`** is an optional string on every write tool, omitted from parameter tables; pass `organization.id` from [`get_identity`](https://docs.oqoqo.ai/mcp-server/identity-and-projects#get_identity) ([Organization check](https://docs.oqoqo.ai/mcp-server/overview.md#organization-check)).
* `list_web_agents` refuses with `web_agents_unavailable` when web agents are not enabled for your organization. `get_brand`, `set_brand`, and `get_brand_results` refuse with `brand_unavailable` when Brand is not enabled for your organization, and with `plan_upgrade_required` when your plan does not include it. `get_brand_results` refuses with `brand_not_analyzed` before Brand is analyzed for the experiment.

## Tools

### list\_web\_agents

**List the web agents a project can run.** Returns every web agent of the project, whether it is on, its saved browsers, whether it answers only when signed in, and the configuration revisions a launch plan states. The result keeps the field names `engines` and `engine`.

Read-only · CLI: [`oqoqo web-agents list`](https://docs.oqoqo.ai/cli/web-agents#oqoqo-web-agents-list)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |

**Result fields**

| Field | Meaning |
| - | - |
| `engines[].id` | The web agent's `agm_` ID. Pass it as `projectAgentModelBindingId` in a plan of kind `web`. |
| `engines[].engine`, `name` | The web agent's key (`chatgpt`, `claude`, `gemini`, or `google-ai-mode`) and its name. The key is its agent key. |
| `engines[].browsers.personal`, `engines[].browsers.shared` | Your own browser for the web agent and the project's [shared browser](https://docs.oqoqo.ai/experiments/sites.md#who-can-use-a-saved-browser). Each has `state` (`not_set_up`, `saved`, or `needs_setup`), `setupId`, `savedAt`, `savedBy` (the user ID of the person who saved it), `lastCheckedAt`, `thumbnailUrl`, and `signedIn` (whether the browser was signed in to the web agent when it was saved). |
| `engines[].browsers.runsUse` | The browser your launches use: `personal` when you saved one, otherwise `shared` when the project has one, otherwise `fresh` |
| `engines[].lastUse` | Your latest run in the project that used the browser your launches use: `projectId`, `experimentId`, `runId`, `trialId`, `name`, and `usedAt`. `null` or left out when there is none. |
| `engines[].requiresAccount` | Whether the web agent answers only when signed in. A launch needs the browser your runs use to be saved signed in. |
| `engines[].enabled` | `false` when the web agent is turned off for this project. A launch that names it is refused until it is turned on. |
| `access`, `savedBrowsers[]` | After a plan downgrade, `access` is `reset_only` and `savedBrowsers` lists each web agent with a browser you can still reset with [`reset_browser`](https://docs.oqoqo.ai/mcp-server/sites#reset_browser): `engine`, `name`, and `browsers` |
| `projectConfigurationRevision`, `organizationConfigurationRevision` | The revisions a launch plan states |
| `projectId` | The project |

Select each web agent once. See [Set up a web agent's browser](https://docs.oqoqo.ai/experiments/web-agents.md#set-up-a-web-agents-browser) for `get_browser_setup_link` and `reset_browser`.

### get\_brand

**Get a project's brand details.** Returns the brand's name, other names, sites, and plugin or app listing names, and the competitors to tell apart from it. The details apply to the runs of every agent, CLI or web, and agents never get them.

Read-only · CLI: [`oqoqo brand get`](https://docs.oqoqo.ai/cli/web-agents#oqoqo-brand-get)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |

**Result fields**

| Field | Meaning |
| - | - |
| `brand` | `name`, `otherNames`, `domains`, `listingNames`, `competitors` (each with `name`, `otherNames`, and `domains`), and `updatedAt`, the value `set_brand` takes as `expected_updated_at`. `null` when the project has none. |
| `project` | The project |

### set\_brand

**Set a project's brand details.** Replaces all the details. `get_brand_results` and `get_run_answer` mark old runs with them at once.

Changes data · CLI: [`oqoqo brand set`](https://docs.oqoqo.ai/cli/web-agents#oqoqo-brand-set)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `name` | string | Yes | The brand's name, as an answer would write it, up to 120 characters. |
| `other_names` | array of strings | No | Other names people call the brand, up to 20. Omitted means none. |
| `domains` | array of strings | No | Your sites, as hosts or pasted addresses, up to 20. Each is saved as its host without `www.`, and a host covers its subdomains. Omitted means none. |
| `listing_names` | array of strings | No | What the brand is called in plugin or app listings, when that differs from its name, up to 20. Omitted means none. |
| `competitors` | array of objects | No | Up to 10 competitors, each with a required `name` and optional `otherNames` and `domains`, up to 20 of each. Omitted means none. |
| `expected_updated_at` | string (date-time) or null | No | The `updatedAt` you read, or `null` when you read no details. Refuses the change with `brand_changed` when someone else saved first. Omit it to replace whatever is saved. |

A field you leave out is saved as empty, so read the details with `get_brand` first and send back what should stay. Sending the saved details again changes nothing, not even `updatedAt`, so a retry is safe. A competitor can't share a name or a site with the brand or with another competitor. Details that break a rule are refused with `invalid_brand`, and the error says what to change.

**Result fields**

The same fields as `get_brand`.

### analyze\_experiment\_brand

**Analyze brand for an experiment.** For an experiment launched without Brand (`brand` false on `get_experiment`). Brand counts who the experiment's answers name and cite and marks your brand in each run's answer. Oqoqo reads the answers the runs already saved, so every run is counted at once, including finished runs. It runs nothing and costs no runs. An experiment already analyzed stays as it is.

Changes data · CLI: [`oqoqo experiments analyze-brand`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-analyze-brand)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `experiment_id` | string | Yes | The `exp_` ID of the experiment. |
| `project_id` | string | No | The `prj_` project. |

**Result fields**

Returns `project` (`projectId`, `name`, `description`, `createdAt`, and `updatedAt`) and `experiment` (`experimentId`, `label`, `brand`, and `dashboardUrl`). Fails with `brand_unavailable` or `plan_upgrade_required` without Brand, and with `experiment_not_found` if the experiment was deleted or belongs to another project.

### get\_brand\_results

**Get an experiment's brand results.** Returns who the answers name and cite over all of the experiment's runs, as four short lists: brands, other sites, prompts, and fixes. It reads an experiment of either kind, and an answer is a run's final response. A CLI agent run records no sources or searches, so the cited counts, the sites, and the queries cover web agent runs only.

Read-only · CLI: [`oqoqo experiments brand`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-brand)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `experiment_id` | string | Yes | The experiment's `exp_` ID. |
| `section` | `sites`, `prompts`, or `queries` | No | Add one whole list as `detail`, a page at a time. |
| `limit` | integer | No | Rows of the section in one page, up to 100 (default 100). |
| `offset` | integer | No | Where the page of the section starts: the `nextOffset` from the previous page (default 0). |

**Result fields**

| Field | Meaning |
| - | - |
| `experimentKind` | What the experiment ran: `cli` or `web`. This read always returns it. |
| `runs` | `total`, `completed`, and `errored` for the whole experiment. A run that stopped with an error, was cancelled, or was blocked is in `errored` and in no other count. |
| `answers` | The finished runs in this read. Each rate uses the answers where that measure was available. |
| `coverage` | When available, `shownOnPage` and `providerReported` count answers by source type. `queriesMeasured` counts answers that reported search data. |
| `engines` | One per agent the experiment ran: `key` (the key that run filters use), `engine` (a web agent's key, such as `chatgpt`, or a CLI agent's model ID), `label` (a web agent's name, such as `"ChatGPT"`, or `"ChatGPT · US"` for historical runs, or a CLI agent's name, model, and treatment), `answers`, and `queriesReported` |
| `brandKnown` | `true` when the project has brand details. Without them `brands` is empty, no site has an owner, and each prompt's `named` and `cited` are `null`. |
| `brands` | Your brand, then each competitor: `name`, `owner` (`yours` or `competitor`), `answersNamed`, and `answersCited` |
| `otherSites`, `otherSitesTotal` | The 5 sites other than yours that most answers link to: `domain`, `answersCited`, `bestPagePosition` (highest position shown on a page), `bestPosition` (highest reported retrieval rank, or `null` if unavailable), and `owner` `competitor` with `ownerName` for a competitor's site. `otherSitesTotal` counts them all. |
| `prompts`, `promptsTotal` | Up to 10 tasks, the ones whose answers name your brand least first: `taskId`, `taskVersionId`, `name`, `runs`, `named`, `cited`, `evalsPassed`, `evalsEvaluated`, `firstMissedCriterion` (`ordinal` and `text`), `preview` (the latest answer with a saved screenshot: `trialId`, `engineName`, `screenshotUrl`, and `account`), and `byEngine`, the same counts for each agent (by `engineKey`) when the experiment has more than one. `promptsTotal` counts the tasks. |
| `fixes`, `fixesTotal` | The 3 frictions in the most runs that you can fix in your product or setup: `frictionId`, `title`, `fixIn` (`product` or `setup`), `fixSurface`, and `runs`. `fixesTotal` counts them all. |
| `detail` | Only with `section`: `section`, `rows`, `total`, and `nextOffset` (`null` at the end of the list) |
| `notes` | Plain sentences that change how to read the counts |

For brand and prompt rates, use `namedMeasured` or `citedMeasured` when present. Site rows use `citationsMeasured`, and query rows use `measuredAnswers`. Otherwise, use the total answers for that row. A zero denominator means the measure was unavailable.

`section` `sites` pages every site, `prompts` every task, and `queries` the searches the web agents reported, each with `query` and `answers`. Use `queriesReported` to see which agents reported searches. A response that would be too large holds fewer prompts or fewer rows of a section, and `promptsTotal` and `nextOffset` still say what exists. Each field is explained under [`oqoqo experiments brand`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-brand).

Read a task's runs with [`list_runs`](https://docs.oqoqo.ai/mcp-server/runs-and-results#list_runs) (`experiment_id` and `task_id`), one run's answer with [`get_run_answer`](#get_run_answer), and every friction with [`list_frictions`](https://docs.oqoqo.ai/mcp-server/frictions#list_frictions).

### get\_run\_answer

**Get a run's answer.** Returns a run's final response, for a run of either kind. For a web agent run, it returns each prompt and its answer, recorded sources with confirmed citations first, and any reported searches. For a CLI agent run, it returns one turn with the agent's final message, no sources, and `queries: null`, because a CLI agent's sources and searches are not recorded.

Read-only · CLI: [`oqoqo runs answer`](https://docs.oqoqo.ai/cli/runs#oqoqo-runs-answer)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `run_id` | string | Yes | The run's `run_` ID, or a trial's. |

**Result fields**

| Field | Meaning |
| - | - |
| `kind` | The kind of agent that ran: `cli` or `web` |
| `engine`, `engineName`, `answerSettings` | The agent's key (a web agent's key, such as `chatgpt`, or a CLI agent's model ID), its name (for a CLI agent, its name and model), and any settings from a historical web agent run. `answerSettings` is `null` for a CLI agent run. |
| `reportedModel` | The model a web agent reported. `null` when it reported none, and for a CLI agent run. |
| `turns[].prompt`, `turns[].answer` | What the agent was asked (for a CLI agent run, the name of its task), and its answer: `text` as Markdown, and `truncated`, `true` when the stored answer was cut at its size limit. `answer` is `null` when the agent gave none. A turn can have `cutoff` `timed_out` when a partial answer was still being written at the three-minute deadline. |
| `turns[].question` | Present when the web agent ended its response with a question for you: `text` and `options`, the answers it listed. The run sent no reply, and `answer.text` includes the question. |
| `turns[].queries` | The queries the page or historical run reported. A missing observation is `null`, and so is a CLI agent run's. In historical runs an empty list means no queries were recorded. |
| `turns[].sourceScope`, `turns[].sources` | `shown_on_page` records visible sources and their displayed positions. `provider_reported` identifies a historical retrieval list. Citation status and position can be `null`. `sources` is empty for a CLI agent run. |
| `turns[].mentions` | With brand details: each brand or competitor the answer names, with `name`, `owner` (`yours` or `competitor`), `count`, and `firstIndex` |
| `brandKnown` | `true` when the project has brand details and your organization has Brand. Then each source has an `owner` (`yours`, `competitor`, or `other`), a competitor's has its `ownerName`, and each turn has `mentions`. |
| `browser` | The observed `account`, `temporaryChat`, and `webSearchRan` when known. Open `videoUrl` or `screenshotUrl` for the trial's recorded evidence when available. |
| `counts` | Totals across turns. `sources` counts recorded sources. `cited` and `queries` can be `null` when those facts were unavailable. |
| `sourcesTruncated` | `true` when a turn lists fewer sources than the run recorded, so that the response fits its size limit. The last sources in the list are omitted first. `counts` keeps the totals before truncation. |
| `runId`, `trialId`, `experimentId`, `capturedAt` | The run, the trial, the experiment, and when the answer finished |

The answer and the searches are never cut to fit. A run that has no recorded answer is refused with `run_answer_not_found`. A web agent run needs web agents (`web_agents_unavailable`). A CLI agent run needs Brand (`brand_unavailable`, or `plan_upgrade_required` when your plan does not include it), analyzed for its experiment (`brand_not_analyzed`).

## Related

> [card] [Web agents](https://docs.oqoqo.ai/experiments/web-agents.md)
>
> Launch an experiment of web agents and read its runs.

> [card] [Brand](https://docs.oqoqo.ai/experiments/brand.md)
>
> Add your brand details and read the Brand section.

> [card] [oqoqo web-agents and brand](https://docs.oqoqo.ai/cli/web-agents.md)
>
> The matching CLI commands.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.