# Agent.getTools()
[EN] Source: https://mastra.ai/reference/agents/getTools

The `.getTools()` method retrieves the tools configured for an agent, resolving them if they're a function. These tools extend the agent's capabilities, allowing it to perform specific actions or access external systems.

## Usage example

```typescript copy
await agent.getTools();
```

## Parameters

<PropertiesTable
  content={[
    {
      name: "options",
      type: "{ runtimeContext?: RuntimeContext }",
      isOptional: true,
      defaultValue: "{}",
      description: "Optional configuration object containing runtime context.",
    },
  ]}
/>

## Returns

<PropertiesTable
  content={[
    {
      name: "tools",
      type: "TTools | Promise<TTools>",
      description:
        "The tools configured for the agent, either as a direct object or a promise that resolves to the tools.",
    },
  ]}
/>

## Extended usage example

```typescript copy
await agent.getTools({
  runtimeContext: new RuntimeContext(),
});
```

### Options parameters

<PropertiesTable
  content={[
    {
      name: "runtimeContext",
      type: "RuntimeContext",
      isOptional: true,
      defaultValue: "new RuntimeContext()",
      description:
        "Runtime context for dependency injection and contextual information.",
    },
  ]}
/>

## Related

- [Using tools with agents](/docs/agents/using-tools)
- [MCP Overview](/docs/mcp/overview)


---
title: "Reference: Agent.getVoice() | Agents"
description: "Documentation for the `Agent.getVoice()` method in Mastra agents, which retrieves the voice provider for speech capabilities."
---