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

Function fallbackInline

packages/opencode/src/cli/cmd/run/tool.ts:275–282  ·  view source on GitHub ↗
(ctx: ToolFrame)

Source from the content-addressed store, hash-verified

273}
274
275function fallbackInline(ctx: ToolFrame): ToolInline {
276 const title = text(ctx.state.title) || (Object.keys(ctx.input).length > 0 ? JSON.stringify(ctx.input) : "Unknown")
277
278 return {
279 icon: "⚙",
280 title: `${ctx.name} ${title}`,
281 }
282}
283
284function count(n: number, label: string): string {
285 return `${n} ${label}${n === 1 ? "" : "es"}`

Callers 1

toolInlineInfoFunction · 0.85

Calls 1

textFunction · 0.70

Tested by

no test coverage detected