Run a tool
https://{kibana_url}
- POST /api/agent_builder/tools/_execute
- POST /s/{space_id}/api/agent_builder/tools/_execute
Refer to Spaces for more information.
Run a tool with parameters. Use this endpoint to run a tool directly with specified inputs and optional external connector integration. To learn more about Agent Builder tools, refer to the tools documentation.
[Required authorization] Route required privileges: agentBuilder:read.
Request
-
approvalsobject -
Actions the tool run may take that would otherwise need a live user to approve them. Applies to this run and any sub-agents it spawns.
-
auto_approved_apisobject -
Destructive Elasticsearch or Kibana APIs the tool may call without a user confirmation, keyed by backend. A tool run has no live user to answer the confirmation prompt, so a destructive API is refused unless it is listed here.
-
elasticsearchstring · max: 100 -
Elasticsearch APIs pre-approved for this run. Each entry is an exact identifier formed from the namespace and name (for example
indices.create), a namespace wildcard (for exampleindices.*), or*for every Elasticsearch API. -
kibanastring · max: 100 -
Kibana APIs pre-approved for this run. Each entry is an exact identifier formed from the namespace and name (for example
alerting.delete-alerting-rule-id), a namespace wildcard (for examplealerting.*), or*for every Kibana API. -
connector_idstring -
Optional connector ID for tools that require external integrations.
-
tool_idstringrequired -
The ID of the tool to execute.
-
tool_paramsmap string to objectrequired -
Parameters to pass to the tool execution. See examples for details
Response
Indicates a successful response