Interface: WebSearchTool¶
Defined in: types.ts:1468
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>
Properties¶
allowedDomains?¶
optionalallowedDomains:string[]
Defined in: types.ts:1488
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: coda.ToolType.WebSearch,
allowedDomains: ["docs.google.com", "stackoverflow.com"],
},
],
});
type¶
type:
WebSearch
Defined in: types.ts:1293
The type identifier for this tool.
Inherited from¶
BaseTool.type