MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / show_tool_generic

Function show_tool_generic

core/display.py:99–108  ·  view source on GitHub ↗

Show any other tool call cleanly.

(name, args, result)

Source from the content-addressed store, hash-verified

97 border_style=border, box=box.ROUNDED))
98
99def show_tool_generic(name, args, result):
100 """Show any other tool call cleanly."""
101 content = Text()
102 for k, v in args.items():
103 content.append(f'{k}: ', style='bold')
104 content.append(f'{str(v)[:80]}\n', style='dim')
105 if result and result.strip():
106 content.append(result[:200], style='white')
107 console.print(Panel(content, title=name.replace('_', ' ').title(),
108 border_style='dim', box=box.ROUNDED))
109
110def show_response(text):
111 """Show the final AI response cleanly."""

Callers 1

execute_toolFunction · 0.90

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected