> 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. # updateSkillData > Write data under this skill's namespace into a FunctionResult. Writes data under this skill's namespace into a `FunctionResult` object. This persists skill state across tool invocations by embedding it in the agent's global data. ## **Parameters** **`result`** `FunctionResult` — required The FunctionResult to update with the skill's namespaced data. --- **`data`** `Record` — required The data to store under this skill's namespace. --- ## **Returns** `FunctionResult` -- The updated FunctionResult with the skill data merged in. ## **Example** ```typescript {4} import { SkillBase } from '@signalwire/sdk'; // Inside a tool handler, persist skill state const updatedResult = mySkill.updateSkillData(result, { lastQuery: 'New York', cachedResponse: { temp: 72, conditions: 'sunny' }, }); ``` > Write data under this skill's namespace into a FunctionResult.