> ## 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.

# Site and browser tools

> Find and manage project websites, set up their browsers, and read original browser evidence through the Oqoqo plugin.

Use these tools with [Sites](https://docs.oqoqo.ai/experiments/sites.md) (Ultra, private beta) or [web agent browsers](https://docs.oqoqo.ai/experiments/web-agents.md#set-up-a-web-agents-browser) (Ultra, private beta).

* **Badges** are explained under [Approvals](https://docs.oqoqo.ai/mcp-server/overview.md#approvals).
* **`project_id`** is optional on every tool; 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)).

## Tools

### list\_sites

**List Sites in a project.** Finds websites in the project with each website's address, allowed hosts, saved browsers, and current revision.

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

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `search` | string | No | Match part of the current website name or address, ignoring case. |
| `tags` | array of strings | No | Match websites that have any of these tag names or `tag_` IDs. |
| `untagged` | boolean | No | Include websites with no tags. With `tags`, either group matches. |
| `include_tags` | boolean | No | Include each website's current `tags` (default `false`). |
| `limit` | integer | No | Results per page, up to 100 (default 50). |
| `cursor` | string | No | The `nextCursor` from the previous page with the same project and filters. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `sites` | Matching websites with `siteId`, `name`, `address`, `allowedHosts`, `revision`, `isOfficial`, `officialRevision`, `browsers` (see [`get_site`](#get_site)), and optional `tags` |
| `totalCount` | Total matching websites for the active filters (returned on the first page) |
| `nextCursor` | Continue the list, or `null` at the end |
| `access` | After a plan downgrade, `reset_only`, listing and counting only websites with a saved browser you can reset: your own or the shared one |

Tag filters and tag details require full Sites access. A cursor from a different project or filter returns `invalid_cursor`. An unknown tag returns `tag_not_found`.

### get\_site

**Read a website.** Returns the current website and its saved browsers, plus an optional pinned version.

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

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `site_id` | string | Yes | Stable public `site_` ID of the website. |
| `revision` | integer | No | Read a specific immutable website version number. |
| `include_tags` | boolean | No | Include current record tags in `site.tags` (default `false`). |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `site` | Current `siteId`, `name`, `address`, `allowedHosts`, `revision`, `isOfficial`, `officialRevision`, `browsers`, and optional `tags` |
| `site.browsers.personal`, `site.browsers.shared` | Your own browser 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` or `saved`: Oqoqo doesn't check a website's sign-in, so a website's browser is never `needs_setup`), `setupId`, `savedAt`, `savedBy` (the user ID of the person who saved it), `lastCheckedAt` and `signedIn`, which are always `null` for a website, and `thumbnailUrl`. |
| `site.browsers.runsUse` | The browser your launches use: `personal` when you saved one, otherwise `shared` when the project has one, otherwise `fresh` |
| `version` | Immutable website definition for the requested `revision` |
| `access` | After a plan downgrade, `reset_only` |

To list treatments that use any version of the website, pass its ID as `uses` to [`inspect_catalog`](https://docs.oqoqo.ai/mcp-server/catalog-and-uploads#inspect_catalog). To find past use across all revisions, pass it as `tool_id` to [`list_experiments`](https://docs.oqoqo.ai/mcp-server/experiments#list_experiments), [`list_runs`](https://docs.oqoqo.ai/mcp-server/runs-and-results#list_runs), or [`list_frictions`](https://docs.oqoqo.ai/mcp-server/frictions#list_frictions). A missing website returns `site_not_found`; a missing revision returns `site_version_not_found`.

### create\_site

**Add a website.** Adds a website to the project using its public web address.

Changes data · CLI: [`oqoqo sites create`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-create)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `address` | string | Yes | Public web address of the website. You can omit `https://`. |
| `request_id` | string | Yes | An ID you choose, so that an exact retry with the same address returns the same website. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `site` | The new website, including its public `siteId` and first `revision` |

A `request_id` already used for another address returns `request_conflict`.

### update\_site

**Update a website.** Edits a website's name, address, or allowed hosts and creates a new version.

Changes data · CLI: [`oqoqo sites update`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-update)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `site_id` | string | Yes | Stable public `site_` ID of the website. |
| `expected_revision` | integer | Yes | Current `site.revision` from `get_site`. |
| `name` | string | No | New display name for the website. |
| `address` | string | No | New starting web address. Changing the host resets every saved browser for the website, including your teammates' and the shared one. |
| `allowed_hosts` | array of strings | No | Replace the optional hosts. The starting hostname is always allowed. Send `[]` to keep only the starting hostname. Omit to retain the current list. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `site` | Updated website with its new `revision` and current `browsers` |

If the website changed since your read, the call returns `configuration_changed`.

### set\_site\_official

**Mark or unmark a website as official.** Designates one website version as the project's official website (`official: true`), replacing any previous official website and updating the managed **Official site** treatment, or removes the designation (`official: false`).

Changes data · CLI: [`oqoqo sites official`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-official)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `site_id` | string | Yes | Stable public `site_` ID of the website. |
| `official` | boolean | Yes | `true` to mark this version as the project's official website, or `false` to remove the designation. |
| `revision` | integer | No | Website version number to mark or unmark. Defaults to the current version. |
| `expected_revision` | integer | Yes | Current `site.revision` from `get_site`. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `site` | Updated website with its current `isOfficial` and `officialRevision` |
| `version` | Immutable website definition for the requested `revision`, when provided |

If the website changed since your read, the call returns `configuration_changed`. A missing website returns `site_not_found`; a missing revision returns `site_version_not_found`.

### delete\_site

**Delete a website.** Deletes the website and every browser saved for it, including your teammates' and the shared one, when called. Past run evidence remains readable on each trial.

Destructive · Irreversible · CLI: [`oqoqo sites delete`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-delete)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `site_id` | string | Yes | Stable public `site_` ID of the website. |
| `expected_revision` | integer | Yes | Current `site.revision` from `get_site`. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `siteId` | Public ID of the deleted website |
| `deleted` | `true` |

A stale revision returns `configuration_changed`.

### get\_browser\_setup\_link

**Get the browser setup link.** Returns the authenticated dashboard `setupUrl` where a person sets up their own browser, or the project's shared browser, for a website or a web agent: sign in, accept cookies, or change settings. Each person's runs use their own browser, otherwise the shared one, otherwise a fresh browser ([Who can use a saved browser](https://docs.oqoqo.ai/experiments/sites.md#who-can-use-a-saved-browser)).

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

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `subject` | object | Yes | Website (`{"kind":"site","siteId":"site_..."}`) or web agent (`{"kind":"engine","engine":"chatgpt"}`). |
| `scope` | string | No | `personal` (default): the person's own browser, which only they can use. `shared`: the project's browser, which everyone in the project can use, edit, and reset. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `subject` | The website or web agent |
| `scope` | The browser the link sets up: `personal` or `shared` |
| `setupUrl` | Authenticated dashboard link where the person sets up the browser |

### reset\_browser

**Reset a saved browser.** Deletes your saved browser, or the project's shared browser, for a website or a web agent when called. Your new runs use the shared browser or a fresh one, and `browsers.runsUse` in the result says which. Runs that already opened the browser finish, and runs that are still waiting stop, so you can retry them with [`recover_browser_experiment`](https://docs.oqoqo.ai/mcp-server/experiments#recover_browser_experiment). Your AI assistant's host asks you to confirm first.

Destructive · Irreversible · CLI: [`oqoqo sites reset-browser`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-reset-browser) or [`oqoqo web-agents reset-browser`](https://docs.oqoqo.ai/cli/web-agents#oqoqo-web-agents-reset-browser)

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `subject` | object | Yes | Website (`{"kind":"site","siteId":"site_..."}`) or web agent (`{"kind":"engine","engine":"chatgpt"}`). |
| `scope` | string | No | `personal` (default): your own browser. `shared`: the project's browser, which this deletes for everyone in the project. |
| `expected_setup_id` | string or null | Yes | That browser's `setupId` from `browsers.personal` or `browsers.shared` in `get_site` or `list_web_agents`, or `null` when nothing is saved. |

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project |
| `subject` | The website or web agent |
| `scope` | The browser you reset: `personal` or `shared` |
| `browsers` | Both browsers after the reset, with `personal`, `shared`, and `runsUse`, as in [`get_site`](#get_site) |

If the saved browser changed since your read, the call returns `configuration_changed`.

### get\_run\_browser

**Read browser evidence for a run.** Returns a trial's browser actions, recording and final screenshot links, or original bytes for a step screenshot.

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

| Parameter | Type | Required | Description |
| - | - | - | - |
| `project_id` | string | No | The `prj_` project. |
| `run_id` | string | Yes | The trial's `run_` ID (`trialId` from [`list_runs`](https://docs.oqoqo.ai/mcp-server/runs-and-results#list_runs)). |
| `screenshot_url` | string | No | A URL from this run's `screenshotUrl` or `steps[].screenshotUrls`. Inspect the original image inline (up to 4 MiB) and read its verified bytes. |
| `offset` | integer | No | Byte offset into the screenshot when paging with `screenshot_url` (default `0`). |
| `limit_bytes` | integer | No | Maximum bytes to read in one screenshot page, up to 12,288 (default 12,288). |
| `after_ordinal` | integer | No | Return browser actions after this step ordinal. |
| `limit` | integer | No | Browser actions per page, up to 100 (default 50). |

**Result fields**

| Field | Meaning |
| - | - |
| `runId`, `state`, `account` | Selected trial, browser state (`recording`, `ready`, `not_opened`, or `unavailable`), and observed account (`signed_in`, `signed_out`, or `null`) |
| `recordingStartedAt`, `videoUrl`, `screenshotUrl` | Recording start and authenticated links for the recording and final screenshot |
| `steps` | Browser actions with `ordinal`, `action`, `status` (`ok`, `failed`, `blocked`, or `unknown`), `address`, `offsetMs`, `durationMs`, `pageText`, `pageTextTruncated`, `screenshotUrls`, `unavailableScreenshotCount`, and optional `allowHost` |
| `nextAfterOrdinal` | Pass as `after_ordinal` to continue, or `null` at the end |
| `screenshotPage` | Returned when `screenshot_url` is set: `url`, `mimeType`, and `content` (`nextOffsetBytes`, `totalBytes`, `sha256`, `eof`) |

When `screenshot_url` is passed without `offset`, original images up to 4 MiB are also returned inline as a native MCP image block. An unavailable step image returns `run_screenshot_not_found`.

## Related

> [card] [Sites](https://docs.oqoqo.ai/experiments/sites.md)
>
> Set up a website for a treatment and find its run evidence.

> [card] [Tags](https://docs.oqoqo.ai/experiments/tags.md)
>
> Organize websites and other project records with tags.


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