execute_tool is the final step in every AgentKey workflow. It takes a canonical Provider/Operation name and a parameter object, routes the call to the appropriate upstream provider, and returns the provider’s response. Because it deducts credits from your balance and triggers a real API call, you should always complete the Discover → Describe → Execute sequence before calling it — never guess a tool name or invent parameter values.
The canonical
Provider/Operation name returned by find_tools or
confirmed by describe_tool — for example Firecrawl/scrape or
Twitter/searchTweets. Matching is case-insensitive. You can also pass
agentkey_account to run a free credit and health check without touching
your tool-call balance.A JSON object containing the tool’s parameters. The fastest and most reliable
way to build this object is to copy the
execute_as template from
describe_tool and replace the placeholder values with your real inputs.
Omitting required parameters or passing the wrong types will result in an
invalid-parameter error.Returns
The provider-specific response payload returned by the upstream API. The shape of this object varies by tool — review thedescribe_tool output or the
provider’s own documentation to understand the structure. The response is passed
through to your agent as-is.