***

title: get_step
slug: /reference/python/agents/context-builder/context/get-step
description: Get an existing step by name.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[step]: /docs/server-sdks/reference/python/agents/context-builder/step

Get an existing step by name for inspection or modification.

## **Parameters**

<ParamField path="name" type="str" required={true} toc={true}>
  Step name to look up.
</ParamField>

## **Returns**

[`Step`][step] if found, `None`
otherwise.

## **Example**

```python {9}
from signalwire import AgentBase

agent = AgentBase(name="my-agent", route="/agent")

contexts = agent.define_contexts()
ctx = contexts.add_context("default")
ctx.add_step("collect_info").set_text("Collect the caller's account information.")

step = ctx.get_step("collect_info")
if step is not None:
    step.set_functions(["verify_identity"])

agent.serve()
```