Execute an action
execute_actionRun one action returned by list_actions. Mutating and open-world.
Only run the action the user explicitly asked for — this may write to an
external ad platform, third-party app, or Porter destination, or spend
generation quota (creative image/video/voice actions). Pass the
action id from list_actions, the params conforming to its
params_schema, and — when the action requires_account — the
account_id from list_accounts (verbatim). Returns a fixed envelope:
status (success|error), result, message, knowledge (related KB
entries you can open with get_knowledge), and an optional follow_up.
display (optional) says how the result should be SHOWN in clients that
render the result widget; it never changes what the action does. Omit it
and the widget picks a view from the payload — a generated video gets a
player and a download button, ads with images get a grid, rows get a
table. Set it when the user asked for a particular view, or when you know
the payload's shape better than a guess would:
{"mode": "text|table|kv|grid|masonry|carousel|gallery|video|image|json",
"title": "Top ads", # header
"items": "data.ads", # dot-path to the list to render
"fields": {"image": "thumb", "title": "name", "subtitle": "status",
"badge": "objective", "link": "permalink",
"meta": ["cpa", "ctr"]},
"columns": ["name", "cpa"], # table columns, in order
"page_size": 24}
Use carousel to browse creative one at a time, masonry for mixed-height
images, grid for a scannable set, gallery for image-only sets,
table/columns to compare numbers, text for a plain answer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "execute_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| params | No | ||
| display | No | ||
| account_id | No |