> 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. # params > Set query or form parameters for the most recently added webhook. [ref-datamap]: /docs/server-sdks/reference/typescript/agents/data-map Set request query/form parameters for the most recently added webhook. Writes to the `params` key of the webhook definition. > **Warning** > > `params()` is **not** an alias for `body()`. They write to different keys in the > webhook specification: `body` sets the request body, while `params` sets > query/form parameters. ## **Parameters** **`data`** `Record` — required Request parameters. Supports `${variable}` substitutions. --- ## **Returns** [`DataMap`][ref-datamap] -- Self for method chaining. Throws an `Error` if no webhook has been added yet. ## **Example** ```typescript {7} import { DataMap, FunctionResult } from '@signalwire/sdk'; const dm = new DataMap('search_docs'); dm.purpose('Search documentation'); dm.parameter('query', 'string', 'Search query', { required: true }); dm.webhook('GET', 'https://api.docs.example.com/search'); dm.params({ q: '${args.query}', limit: 10 }); dm.output(new FunctionResult('Found: ${response.results[0].title}')); ``` > Set query or form parameters for the most recently added webhook.