Function
GenericTool
(props: {
tool: string
status?: string
hideDetails?: boolean
input?: Record<string, unknown>
})
Source from the content-addressed store, hash-verified
| 317 | } |
| 318 | |
| 319 | export 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
Tested by
no test coverage detected