# ChatToolCallTemplateDirective

Package: `@threadplane/angular/chat` · 0.3.7

Reference: /docs/api/angular/chat/ChatToolCallTemplateDirective

```typescript
import { ChatToolCallTemplateDirective } from '@threadplane/angular/chat';
```

## ChatToolCallTemplateDirective

Registers a per-tool-name template inside <chat-tool-calls>. The
primitive collects all directive instances via contentChildren() and
dispatches incoming calls by their `name` field. A literal "*" name
registers a wildcard catch-all that handles any tool name without a
specific template registered.

Usage:
```html
  <chat-tool-calls [agent]="agent" [message]="msg">
    <ng-template chatToolCallTemplate="search_web" let-call let-status="status">
      <my-search-result-card [query]="call.args.query" [status]="status"/>
    </ng-template>
    <ng-template chatToolCallTemplate="*" let-call>
      <chat-tool-call-card [toolCall]="call"/>
    </ng-template>
  </chat-tool-calls>
```

```typescript
export declare class ChatToolCallTemplateDirective  {
  readonly name: import("@angular/core").InputSignal<string>;
  readonly templateRef: TemplateRef<any>;
}
```

**Angular selector:** `[chatToolCallTemplate]`

- Input `chatToolCallTemplate` (required): `string`

### name

The tool name this template handles, or "*" for the wildcard catch-all.

```typescript
readonly name: import("@angular/core").InputSignal<string>;
```

### templateRef

```typescript
readonly templateRef: TemplateRef<any>;
```