# Interface: WebSearchTool

Defined in: [types.ts:1443](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/types.ts#L1443)

Tool that enables searching the public internet for up-to-date information. When enabled, the agent can search the web to retrieve current information about a topic or from a URL.

## Extends

- `BaseTool`\<[`WebSearch`](../../enumerations/ToolType/#websearch)>

## Properties

### allowedDomains?

> `optional` **allowedDomains**: `string`[]

Defined in: [types.ts:1463](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/types.ts#L1463)

Optional list of domains to restrict web search results to. When specified, only results from these domains will be returned. Omit the HTTP/HTTPS prefix (e.g., use `docs.example.com` not `https://docs.example.com`). Subdomains are automatically included in the search. Maximum of 100 domains allowed.

#### Example

```
pack.addSkill({
  // ...
  tools: [
    {
      type: sdk.ToolType.WebSearch,
      allowedDomains: ["docs.google.com", "stackoverflow.com"],
    },
  ],
});
```

______________________________________________________________________

### type

> **type**: [`WebSearch`](../../enumerations/ToolType/#websearch)

Defined in: [types.ts:1280](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/types.ts#L1280)

The type identifier for this tool.

#### Inherited from

`BaseTool.type`
