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

Function getToolString

desktop/src/features/agents/ui/agentSessionUtils.ts:3–14  ·  view source on GitHub ↗
(
  record: Record<string, unknown>,
  keys: string[],
)

Source from the content-addressed store, hash-verified

1import { rewriteRelayUrl } from "@/shared/lib/mediaUrl";
2
3export function getToolString(
4 record: Record<string, unknown>,
5 keys: string[],
6): string | null {
7 for (const key of keys) {
8 const value = record[key];
9 if (typeof value === "string" && value.trim().length > 0) {
10 return value.trim();
11 }
12 }
13 return null;
14}
15
16export function getToolStringList(
17 record: Record<string, unknown>,

Callers 15

buildImageContentFunction · 0.90
buildFileEditDiffFunction · 0.90
getResultTextFunction · 0.90
classifyLoadSkillToolFunction · 0.90
extractBuzzToolPreviewFunction · 0.90
genericPreviewFunction · 0.90
getTodoPreviewFunction · 0.90
buildShellContentFunction · 0.90
buildSkillReadContentFunction · 0.90
buildFileReadContentFunction · 0.90
getSentMessageLinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected