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

Function scrollWebSearchStart

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

Source from the content-addressed store, hash-verified

908}
909
910function scrollWebSearchStart(p: ToolProps<typeof WebSearchTool>): string {
911 const title = webSearchProviderLabel(p.metadata.provider)
912 const query = p.input.query ?? ""
913 if (!query) {
914 return `◈ ${title}`
915 }
916
917 return `◈ ${title} "${query}"`
918}
919
920function permEdit(p: ToolPermissionProps<typeof EditTool>): ToolPermissionInfo {
921 const input = p.input as { filePath?: string; filepath?: string; diff?: string }

Callers

nothing calls this directly

Calls 1

webSearchProviderLabelFunction · 0.90

Tested by

no test coverage detected