MCPcopy
hub / github.com/codeaashu/claude-code / call

Function call

src/tools/BriefTool/BriefTool.ts:186–203  ·  view source on GitHub ↗
({ message, attachments, status }, context)

Source from the content-addressed store, hash-verified

184 renderToolUseMessage,
185 renderToolResultMessage,
186 async call({ message, attachments, status }, context) {
187 const sentAt = new Date().toISOString()
188 logEvent('tengu_brief_send', {
189 proactive: status === 'proactive',
190 attachment_count: attachments?.length ?? 0,
191 })
192 if (!attachments || attachments.length === 0) {
193 return { data: { message, sentAt } }
194 }
195 const appState = context.getAppState()
196 const resolved = await resolveAttachments(attachments, {
197 replBridgeEnabled: appState.replBridgeEnabled,
198 signal: context.abortController.signal,
199 })
200 return {
201 data: { message, attachments: resolved, sentAt },
202 }
203 },
204} satisfies ToolDef<InputSchema, Output>)
205

Callers

nothing calls this directly

Calls 2

logEventFunction · 0.85
resolveAttachmentsFunction · 0.85

Tested by

no test coverage detected