Skip to content

cap_web_search

Source: cap_web_search.ccomponents/claw_capabilities/cap_web_search/src/cap_web_search.c · header: cap_web_search.hcomponents/claw_capabilities/cap_web_search/include/cap_web_search.h · Skill: SKILL.mdcomponents/claw_capabilities/cap_web_search/skills/cap_web_search/SKILL.md

cap_web_search exposes the web_search tool to the LLM, allowing the Agent to run web searches through the configured search provider. It currently supports two search API backends: Tavily and Brave Search.

Tool IDDescription
web_searchSearch the web and return concise formatted results
ParameterTypeRequiredDescription
querystringYesSearch keywords

Returns formatted search result text containing titles, summaries, and links. By default it returns the first 5 results.

ProviderNVS config keyDescription
Tavilytavily_api_keyPreferred provider; if both Tavily and Brave are configured, Tavily is used first
Brave Searchbrave_api_keyFallback provider
#include "cap_web_search.h"

cap_web_search_register_group();
cap_web_search_set_tavily_key("tvly-xxxxx");
// or
cap_web_search_set_brave_key("BSAxxxxx");

API keys are usually read from NVS by the application layer, then passed to the corresponding set_*_key function.

PropertyValue
Group IDcap_web_search
Default LLM-visibleYes (edge_agent default initial visible group)
Tool count1