Skip to main content
Docs menu
All MCP tools

MCP tools · Agents

Edit an agent's variables

update_agent_variables

Edit 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

NameTypeDescription
agent_idrequiredstringThe agent's id, a UUID like 123e4567-e89b-12d3-a456-426614174000.
set_mappingobjectPlaceholder -> 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_mappingarray of stringPlaceholder names whose CSV mapping should be removed. Optional.
mapping_enabledbooleanTurn CSV mapping on or off. When off, each {placeholder} is filled from the CSV column with the same name. Optional.
post_call_fieldsarray of objectReplaces the whole list of fields extracted after each call, so an addition includes the existing fields too. Cannot be empty. Optional.
org_idstringThe organization to work in (its id). Your workspace has more than one.