> 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. # toggleFunctions > Enable or disable specific SWAIG functions at runtime. [functionresult]: /docs/server-sdks/reference/typescript/agents/function-result Enable or disable specific SWAIG functions at runtime. This lets you control which tools are available to the AI at different points in the conversation (e.g., enabling payment functions only after identity verification). ## **Parameters** **`toggles`** `{ function: string; active: boolean }[]` — required Array of toggle objects. Each object must contain: * `"function"` — name of the SWAIG function to toggle * `"active"` — `true` to enable, `false` to disable --- ## **Returns** [`FunctionResult`][functionresult] -- `this`, for chaining. ## **Example** ```typescript {4} import { FunctionResult } from '@signalwire/sdk'; const result = new FunctionResult() .toggleFunctions([ { function: 'transfer_call', active: false }, { function: 'check_balance', active: true }, ]); ``` > Enable or disable specific SWAIG functions at runtime.