> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# By criteria

> Reference for the `By criteria` schema.

## Referenced In

* [Browser surface](/reference/schemas/browser-surface)
* [App surface](/reference/schemas/app-surface)

## Fields

| Field | Type    | Description                                                                              | Default |
| :---- | :------ | :--------------------------------------------------------------------------------------- | :------ |
| name  | string  | Optional. Name assigned when the window/tab was opened. Minimum length: 1. Pattern: `\S` | —       |
| index | integer | Optional. Index in creation order. Negative counts from the end.                         | —       |
| title | string  | Optional. Page title to match. Substring, or /regex/. Minimum length: 1                  | —       |
| url   | string  | Optional. Page URL to match. Substring, or /regex/. Minimum length: 1                    | —       |

## Examples

```json
{
  "name": "example",
  "index": 42,
  "title": "example",
  "url": "example"
}
```