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

Function renderToolUseTag

src/tools/AgentTool/UI.tsx:423–443  ·  view source on GitHub ↗
(input: Partial<{
  description: string;
  prompt: string;
  subagent_type: string;
  model?: ModelAlias;
}>)

Source from the content-addressed store, hash-verified

421 return description;
422}
423export function renderToolUseTag(input: Partial<{
424 description: string;
425 prompt: string;
426 subagent_type: string;
427 model?: ModelAlias;
428}>): React.ReactNode {
429 const tags: React.ReactNode[] = [];
430 if (input.model) {
431 const mainModel = getMainLoopModel();
432 const agentModel = parseUserSpecifiedModel(input.model);
433 if (agentModel !== mainModel) {
434 tags.push(<Box key="model" flexWrap="nowrap" marginLeft={1}>
435 <Text dimColor>{renderModelName(agentModel)}</Text>
436 </Box>);
437 }
438 }
439 if (tags.length === 0) {
440 return null;
441 }
442 return <>{tags}</>;
443}
444const INITIALIZING_TEXT = 'Initializing…';
445export function renderToolUseProgressMessage(progressMessages: ProgressMessage<Progress>[], {
446 tools,

Callers

nothing calls this directly

Calls 4

getMainLoopModelFunction · 0.85
parseUserSpecifiedModelFunction · 0.85
renderModelNameFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected