> 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. # getValidContexts > Return the list of valid context names for a context. [context]: /docs/server-sdks/reference/typescript/agents/context-builder/context Return the list of valid context names the AI may navigate to from this context. This is an internal method on [`Context`][context]. ## **Parameters** None. ## **Returns** `string[] | null` -- The allowed context names, or `null` if not set. ## **Example** ```typescript {7} import { ContextBuilder } from '@signalwire/sdk'; const builder = new ContextBuilder(); const ctx = builder.addContext('default'); ctx.setValidContexts(['sales', 'support']); console.log(ctx.getValidContexts()); // ["sales", "support"] ``` > Return the list of valid context names for a context.