stack kb agent-builder post-agent-builder-converse cli command
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Preview
Preview
Stack
Preview
Preview
elastic stack kb agent-builder post-agent-builder-converse [options]
Send chat message
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--execution-modeenum-
define how to execute the agent (local execution or via task_manager)
Values: local, task_manager
--access-controlstring- Optional conversation access control. Defaults to private.
--actionenum-
Deprecated and ignored. The "regenerate" action has been removed; the field is still accepted for backward compatibility.
Values: regenerate
--agent-idstring- The ID of the agent to chat with. Defaults to the default Elastic AI agent.
--attachmentsstring[]-
Optional attachments to send with the message.
Repeatable: pass
--attachmentsmultiple times to supply more than one value --browser-api-toolsstring[]-
Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.
Repeatable: pass
--browser-api-toolsmultiple times to supply more than one value --configuration-overridesstring- Runtime configuration overrides. These override the stored agent configuration for this execution only.
--connector-idstring- Optional connector ID for the agent to use for model routing. Mutually exclusive with
inference_id; omit or use only one. --conversation-idstring- Optional existing conversation ID to continue a previous conversation.
--execution-idstring- Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID.
--inference-idstring- Optional inference endpoint ID for model routing (public alias for the same internal identifier as
connector_id). Mutually exclusive withconnector_id. --inputstring- The user input message to send to the agent.
--project-routingstring- Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere.
--promptsstring- Use this field to respond to a
confirmation,authorization, orask_user_questionprompt. Send anallowboolean to answer aconfirmationprompt, anauthorizedboolean to answer anauthorizationprompt, or ananswersarray (one entry per question) to answer anask_user_questionprompt. --read-only- When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation.
--reasoning-levelenum-
Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.
Values: none, minimal, low, medium, high, xhigh
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON