# filterToolsByMode

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/tools/tool-profiles.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/tools/tool-profiles.ts#L129)

Filter a list of tool definitions down to those allowed by the given mode.
Tools not in the profile are omitted. When mode is 'full', returns all tools.

## Signature

```ts
function filterToolsByMode(tools: T[], mode: TaskMode): T[]
```

## Parameters

| Name | Type |
|---|---|
| `tools` | `T[]` |
| `mode` | `TaskMode` |

**Returns:** `T[]`
