MCPcopy Create free account
hub / github.com/freecodexyz/free-code / renderToolUseMessage

Function renderToolUseMessage

src/tools/RemoteTriggerTool/UI.tsx:6–8  ·  view source on GitHub ↗
(input: Partial<Input>)

Source from the content-addressed store, hash-verified

4import { countCharInString } from '../../utils/stringUtils.js';
5import type { Input, Output } from './RemoteTriggerTool.js';
6export function renderToolUseMessage(input: Partial<Input>): React.ReactNode {
7 return `${input.action ?? ''}${input.trigger_id ? ` ${input.trigger_id}` : ''}`;
8}
9export function renderToolResultMessage(output: Output): React.ReactNode {
10 const lines = countCharInString(output.json, '\n') + 1;
11 return <MessageResponse>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected