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

# Browserbase: Web Search

> Search the web for a query and get structured results with titles and URLs. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Search the web for a query and get structured results with titles and URLs.

> [!NOTE]
>
> Tool ID: `browserbase_web_search`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'browserbase_web_search',
  {
    "query": "software companies hiring engineers"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute browserbase_web_search --input '{
  "query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "requestId": "request_123",
    "query": "software companies hiring engineers",
    "results": [
      {
        "id": "id_123",
        "url": "https://example.com",
        "title": "VP of Engineering"
      }
    ]
  }
}
```

Use `deepline describe browserbase_web_search --json` for the latest machine-readable contract.

## Input reference

Perform a web search and return structured results.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.query` | `string` | Yes | — | The search query string Minimum length: 1. Maximum length: 200. |
| `payload.numResults` | `integer` | No | `10` | Number of results to return (1-25) Minimum: 1. Maximum: 25. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Perform a web search and return structured results.",
    "properties": {
      "query": {
        "type": "string",
        "description": "The search query string",
        "minLength": 1,
        "maxLength": 200
      },
      "numResults": {
        "type": "integer",
        "description": "Number of results to return (1-25)",
        "default": 10,
        "minimum": 1,
        "maximum": 25
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.requestId` | `string` | Yes | — | Unique identifier for the request |
| `result.data.query` | `string` | Yes | — | The search query that was executed |
| `result.data.results` | `array` | Yes | — | List of search results |
| `result.data.results[].id` | `string` | Yes | — | Unique identifier for the result |
| `result.data.results[].url` | `string` | Yes | — | The URL of the search result |
| `result.data.results[].title` | `string` | Yes | — | The title of the search result |
| `result.data.results[].author` | `string` | No | — | Author of the content if available |
| `result.data.results[].publishedDate` | `string` | No | — | Publication date in ISO 8601 format Format: `date-time`. |
| `result.data.results[].image` | `string` | No | — | Image URL if available |
| `result.data.results[].favicon` | `string` | No | — | Favicon URL |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Unique identifier for the request"
          },
          "query": {
            "type": "string",
            "description": "The search query that was executed"
          },
          "results": {
            "type": "array",
            "description": "List of search results",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unique identifier for the result"
                },
                "url": {
                  "type": "string",
                  "description": "The URL of the search result"
                },
                "title": {
                  "type": "string",
                  "description": "The title of the search result"
                },
                "author": {
                  "type": "string",
                  "description": "Author of the content if available"
                },
                "publishedDate": {
                  "type": "string",
                  "description": "Publication date in ISO 8601 format",
                  "format": "date-time"
                },
                "image": {
                  "type": "string",
                  "description": "Image URL if available"
                },
                "favicon": {
                  "type": "string",
                  "description": "Favicon URL"
                }
              },
              "required": [
                "id",
                "url",
                "title"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "requestId",
          "query",
          "results"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.1` per pricing unit.

## Related documentation

* [Browserbase provider guide](https://deepline.com/docs/providers/browserbase/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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