MCPcopy Create free account
hub / github.com/block/buzz / genericPreview

Function genericPreview

desktop/src/features/agents/ui/agentSessionToolClassifier.ts:623–635  ·  view source on GitHub ↗
(input: ToolClassificationInput)

Source from the content-addressed store, hash-verified

621}
622
623function genericPreview(input: ToolClassificationInput): string | null {
624 return (
625 getToolString(input.args, [
626 "command",
627 "path",
628 "source",
629 "query",
630 "name",
631 "content",
632 "message",
633 ]) ?? (input.title ? input.title : null)
634 );
635}
636
637function isBuzzMessageSend(operation: string) {
638 return operation === "send_message" || operation === "messages_send";

Callers 2

genericDescriptorFunction · 0.85

Calls 1

getToolStringFunction · 0.90

Tested by

no test coverage detected