Docs menu
All MCP tools
MCP tools · Agents
Edit an agent's variables
update_agent_variablesEdit a draft agent's variables: map {placeholders} to audience CSV columns, turn CSV mapping on or off, and set the post-call fields it extracts after each call. Drafts only — a launched agent is edited in the dashboard. A placeholder can be mapped here once it appears in the workflow prompt.
- Scope needed
- finn or assistants:write
- Acts as
- You, the signed-in member, with your role's permissions.
- Changes data
- Yes
- Held for approval
- No
- Available to
- Every organization
Inputs
| Name | Type | Description |
|---|---|---|
| agent_idrequired | string | The agent's id, a UUID like 123e4567-e89b-12d3-a456-426614174000. |
| set_mapping | object | Placeholder -> audience CSV column, e.g. { "name": "Full Name", "loan_amount": "EMI Amount" }. Keys are placeholder names without braces and must already appear in the prompt as {name}. Merged into the existing mapping. Optional. |
| remove_mapping | array of string | Placeholder names whose CSV mapping should be removed. Optional. |
| mapping_enabled | boolean | Turn CSV mapping on or off. When off, each {placeholder} is filled from the CSV column with the same name. Optional. |
| post_call_fields | array of object | Replaces the whole list of fields extracted after each call, so an addition includes the existing fields too. Cannot be empty. Optional. |
| org_id | string | The organization to work in (its id). Your workspace has more than one. |