> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # getSteps > Return the map of all steps in a context. [context]: /docs/server-sdks/reference/typescript/agents/context-builder/context [step]: /docs/server-sdks/reference/typescript/agents/context-builder/step Return the internal map of all steps in this context. This is an internal method on [`Context`][context]. ## **Parameters** None. ## **Returns** `Map` -- The step map keyed by step name. ## **Example** ```typescript {8} import { ContextBuilder } from '@signalwire/sdk'; const builder = new ContextBuilder(); const ctx = builder.addContext('default'); ctx.addStep('greet').setText('Greet the caller.'); ctx.addStep('ask_name').setText('Ask for their name.'); console.log(ctx.getSteps().size); // 2 ``` > Return the map of all steps in a context.