Run a tool

Base URL
https://{kibana_url}
  • POST /api/agent_builder/tools/_execute
Auth

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

Privileges agentBuilder:read

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

approvals object

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_apis object

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.

elasticsearch string[] · max items: 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 example indices.*), or * for every Elasticsearch API.

kibana string[] · max items: 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 example alerting.*), or * for every Kibana API.

connector_id string

Optional connector ID for tools that require external integrations.

tool_id string required

The ID of the tool to execute.

tool_params map string to object required

Parameters to pass to the tool execution. See examples for details

Response

200

Indicates a successful response

application/json
Base URL
https://{kibana_url}