Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /**
* Shared props interface for all tool card sub-components.
*
* The ToolCard router passes these through uniformly to whichever
* specialized card component handles the tool category.
*/
/** Props accepted by every tool card sub-component. */
export interface ToolCardProps {
/** Tool name as reported by the runtime (e.g. "Read", "view", "Bash"). */
tool: string;
/** Parsed args object from the tool_use event. */
args: unknown;
/** Tool result content string (undefined if still in-progress). */
result?: string;
/** Whether the tool result is an error. */
isError?: boolean;
/** Extended result content (e.g. Copilot's detailedContent with diffs). */
detailedResult?: string;
/**
* For delegation tool calls (Agent/task/read_agent), the id of the
* materialized child session this call spawned (#1075). When present, the
* agent card links to the subagent's activity view. Undefined for
* non-delegation tools.
*/
childSessionId?: string;
/**
* Open a file in the live-docs pane (#1396). When provided, file cards render
* their target path as a clickable link that opens a read-only view. Wired
* from the page with the environment bound.
*/
onOpenDocument?: (uri: string) => void;
}
|