ai_chat
Send a single message to a configured AI model and receive its response. Optionally override the system prompt or model.
Instructions
Send a single message to the configured AI (Claude/OpenAI/Ollama/Bedrock) and return its response. Non-streaming, single-turn. Optionally override the model (model) and the system prompt (system_prompt). On missing credentials, returns a tool error containing the same diagnostic the CLI would print. Mirrors omni-dev ai chat in one-shot form — that CLI command is interactive and has no system_prompt flag, so this tool is the only way to set a custom system prompt. Supply the message as message (inline) OR message_path (a filesystem path the server reads) — not both; prefer the path form when the message is already on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model identifier (e.g., `claude-sonnet-4-6`). When omitted, the backend's environment-configured default model is used; call `config_models_show` to see the identifiers the CLI recognises. | |
| message | No | User message to send to the AI, e.g. `"Summarise this diff in one sentence."`. Sent as a single turn; there is no conversation history. Mutually exclusive with `message_path`; exactly one is required. | |
| message_path | No | Filesystem path the server reads the message from, instead of `message`. Prefer this when the message is already on disk (e.g. a large prompt or document) — it avoids re-emitting it inline. Mutually exclusive with `message`. | |
| system_prompt | No | Optional system prompt; defaults to `"You are a helpful assistant."`. MCP-only: the interactive `omni-dev ai chat` CLI has no equivalent flag, so this override is reachable only through the tool. |