MCPcopy Create free account
hub / github.com/anomalyco/opencode / GenericTool

Function GenericTool

packages/session-ui/src/components/basic-tool.tsx:319–339  ·  view source on GitHub ↗
(props: {
  tool: string
  status?: string
  hideDetails?: boolean
  input?: Record<string, unknown>
})

Source from the content-addressed store, hash-verified

317}
318
319export function GenericTool(props: {
320 tool: string
321 status?: string
322 hideDetails?: boolean
323 input?: Record<string, unknown>
324}) {
325 const i18n = useI18n()
326
327 return (
328 <BasicTool
329 icon="mcp"
330 status={props.status}
331 trigger={{
332 title: i18n.t("ui.basicTool.called", { tool: props.tool }),
333 subtitle: label(props.input),
334 args: args(props.input),
335 }}
336 hideDetails={props.hideDetails}
337 />
338 )
339}

Callers

nothing calls this directly

Calls 3

useI18nFunction · 0.90
labelFunction · 0.70
argsFunction · 0.70

Tested by

no test coverage detected