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

The `.listWorkflows()` method retrieves the workflows configured for an agent, resolving them if they're a function. These workflows enable the agent to execute complex, multi-step processes with defined execution paths.

## Usage example

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

## Parameters

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

## Returns

<PropertiesTable
  content={[
    {
      name: "workflows",
      type: "Promise<Record<string, Workflow>>",
      description:
        "A promise that resolves to a record of workflow names to their corresponding Workflow instances.",
    },
  ]}
/>

## Extended usage example

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

### Options parameters

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

## Related

- [Agents overview](/docs/agents/overview)
- [Workflows overview](/docs/workflows/overview)


---
title: "Reference: Agent.network() | Agents"
description: "Documentation for the `Agent.network()` method in Mastra agents, which enables multi-agent collaboration and routing."
---