> ## Documentation Index
> Fetch the complete documentation index at: https://cognitio-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: AgentDefinition

> Generated from the public TypeScript API.

Session-scoped subagent profile. Its prompt, model, tools and MCP servers apply to child tasks; spawnMode chooses fresh or inherited context.

## Properties

### description?

```ts theme={null}
optional description?: string;
```

***

### disallowedTools?

```ts theme={null}
optional disallowedTools?: string[];
```

***

### mcpServers?

```ts theme={null}
optional mcpServers?: ExternalMcpServer[];
```

***

### model?

```ts theme={null}
optional model?: ModelId;
```

***

### permissionMode?

```ts theme={null}
optional permissionMode?: PermissionMode;
```

***

### prompt

```ts theme={null}
prompt: string;
```

***

### spawnMode?

```ts theme={null}
optional spawnMode?: "fresh" | "inherit";
```

fresh = new context; inherit = fork parent context.

***

### steps?

```ts theme={null}
optional steps?: number;
```

***

### temperature?

```ts theme={null}
optional temperature?: number;
```

***

### tools?

```ts theme={null}
optional tools?: string[];
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.