Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/** A search: scope in the row, reported hits in the body. */
import type { ToolDetail } from '@service-agent-fold/generated/types';
import { Show } from 'solid-js';
import { FoldedOutput, ToolCard } from '../../ui';
import { pathsSubtitle, type ToolCallCommon } from './shared';
export function SearchToolCall(props: {
detail: Extract<ToolDetail, { kind: 'search' }>;
common: ToolCallCommon;
}) {
return (
<ToolCard
title={props.common.label}
subtitle={pathsSubtitle(props.detail.paths)}
status={props.common.status}
muted={props.common.muted}
trailing={props.common.trailing}
hasContent={Boolean(props.detail.output)}
>
<Show when={props.detail.output}>
{(output) => <FoldedOutput text={output()} />}
</Show>
</ToolCard>
);
}