MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / extractSendFileToolInput

Function extractSendFileToolInput

web/js/chat.js:603–621  ·  view source on GitHub ↗
(toolInput)

Source from the content-addressed store, hash-verified

601}
602
603function extractSendFileToolInput(toolInput) {
604 if (!toolInput || typeof toolInput !== "object") {
605 return null;
606 }
607
608 const filePath =
609 typeof toolInput.filePath === "string" ? toolInput.filePath.trim() : "";
610 const caption =
611 typeof toolInput.caption === "string" ? toolInput.caption.trim() : "";
612
613 if (!filePath) {
614 return null;
615 }
616
617 return {
618 filePath,
619 caption,
620 };
621}
622
623function getVisibleSendFileToolCalls(toolCalls) {
624 if (!Array.isArray(toolCalls)) {

Callers 1

queueSendFileToolCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected