> 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. # getContext > Retrieve an existing context by name. [context]: /docs/server-sdks/reference/typescript/agents/context-builder/context Retrieve an existing context by name for inspection or modification. ## **Parameters** **`name`** `string` — required Name of the context to retrieve. --- ## **Returns** [`Context`][context] if found, `undefined` otherwise. ## **Example** ```typescript {7} import { ContextBuilder } from '@signalwire/sdk'; const builder = new ContextBuilder(); const ctx = builder.addContext('default'); ctx.addStep('greet').setText('Greet the caller.'); const retrieved = builder.getContext('default'); if (retrieved !== undefined) { retrieved.addStep('followup').setText('Ask if there is anything else.'); } ``` > Retrieve an existing context by name.