MCPcopy Index your code
hub / github.com/anomalyco/opencode / runWebSearch

Function runWebSearch

packages/opencode/src/cli/cmd/run/tool.ts:358–364  ·  view source on GitHub ↗
(p: ToolProps<typeof WebSearchTool>)

Source from the content-addressed store, hash-verified

356}
357
358function runWebSearch(p: ToolProps<typeof WebSearchTool>): ToolInline {
359 const title = webSearchProviderLabel(p.metadata.provider)
360 return {
361 icon: "◈",
362 title: p.input.query ? `${title} "${p.input.query}"` : title,
363 }
364}
365
366function runTask(p: ToolProps<typeof TaskTool>): ToolInline {
367 const kind = Locale.titlecase(p.input.subagent_type || "unknown")

Callers

nothing calls this directly

Calls 1

webSearchProviderLabelFunction · 0.90

Tested by

no test coverage detected