Skip to main content
Glama

chat_ask

Send a prompt through a bound browser to a supported AI provider and wait for the assistant reply, with options for model, files, tools, and captcha handling.

Instructions

Send a prompt (new or existing chat) via the bound browser and wait for the assistant reply. Prefer over chats_create+chats_send when you need the reply; use wait:false or jobs_enqueue kind=ask for non-blocking. Supports model|mode|toggles|tools|files|onCaptcha|ensureTab. Captcha is never auto-solved; allow_agent is operator-opt-in in the client prompt. Requires browsers_bind.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "platform": "<platform>",
      "prompt": "<prompt>"
    },
    "name": "chat_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoProvider mode/style id when applicable
waitNoDefault true; false returns job_id immediately
filesNoLocal files to attach to the prompt
modelNoProvider model id when the UI exposes a model picker
titleNoOptional title when creating a new chat
toolsNoProvider tool/plugin ids to enable
chatIdNoExisting chat id; omit to create/continue per platform defaults
promptYesUser prompt to send
togglesNoProvider UI toggle ids to enable
platformYesProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax
browserIdNoOverride bound browserId for this call only
ensureTabNoIf true, tabs_ensure before the mutate when needed (default false)
onCaptchaNoCaptcha policy (default stop). Captcha is never auto-solved. stop=error immediately; wait_human=poll host_state until cleared; allow_agent=return structured challenge and only permit UI action when the operator opted in via the client prompt
timeout_sNoMax seconds to wait for the assistant reply (10-600; kimi/zai/minimax may need >300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.1.1
    • addedInput schema / properties / ensureTab
      Added value: +{
      +  "description": "If true, tabs_ensure before the mutate when needed (default false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / onCaptcha
      Added value: +{
      +  "description": "Captcha policy (default stop). Captcha is never auto-solved. stop=error immediately; wait_human=poll host_state until cleared; allow_agent=return structured challenge and only permit UI action when the operator opted in via the client prompt",
      +  "enum": [
      +    "stop",
      +    "wait_human",
      +    "allow_agent"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / description
      Previous value: -"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"New value: +"Provider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax"
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "chatgpt",
      -  "grok",
      -  "grok-x",
      -  "copilot",
      -  "claude",
      -  "qwen",
      -  "deepseek",
      -  "perplexity"
      -]New value: +[
      +  "chatgpt",
      +  "grok",
      +  "grok-x",
      +  "copilot",
      +  "claude",
      +  "qwen",
      +  "deepseek",
      +  "perplexity",
      +  "kimi",
      +  "zai",
      +  "minimax"
      +]
    • changedInput schema / properties / timeout_s / description
      Previous value: -"Max seconds to wait for the assistant reply (10-300)"New value: +"Max seconds to wait for the assistant reply (10-600; kimi/zai/minimax may need >300)"
    • changedInput schema / properties / timeout_s / maximum
      Previous value: -300New value: +600
  2. Changed15 schema fields changedv1.0.4
    • addedInput schema / properties / browserId / description
      Added value: +"Override bound browserId for this call only"
    • addedInput schema / properties / chatId / description
      Added value: +"Existing chat id; omit to create/continue per platform defaults"
    • addedInput schema / properties / files / description
      Added value: +"Local files to attach to the prompt"
    • addedInput schema / properties / files / items / properties / mime / description
      Added value: +"MIME type hint"
    • addedInput schema / properties / files / items / properties / name / description
      Added value: +"Display filename override"
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"Absolute local file path to attach"
    • addedInput schema / properties / mode / description
      Added value: +"Provider mode/style id when applicable"
    • addedInput schema / properties / model / description
      Added value: +"Provider model id when the UI exposes a model picker"
    • addedInput schema / properties / platform / description
      Added value: +"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"
    • addedInput schema / properties / prompt / description
      Added value: +"User prompt to send"
    • addedInput schema / properties / timeout_s / description
      Added value: +"Max seconds to wait for the assistant reply (10-300)"
    • addedInput schema / properties / title / description
      Added value: +"Optional title when creating a new chat"
    • addedInput schema / properties / toggles / description
      Added value: +"Provider UI toggle ids to enable"
    • addedInput schema / properties / tools / description
      Added value: +"Provider tool/plugin ids to enable"
    • changedInput schema / properties / wait / description
      Previous value: -"default true; false returns job_id immediately"New value: +"Default true; false returns job_id immediately"
  3. First observedv1.0.3

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it explains the bound-browser flow, blocking versus non-blocking execution, and the browsers_bind prerequisite. The captcha and operator-opt-in details are useful safety context, although they largely repeat the onCaptcha schema and no timeout or failure behavior is added.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loads the core operation, followed logically by alternatives, captcha behavior, and the prerequisite. The dense pipe-separated capability list is largely redundant with the fully documented schema, keeping this from a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Together with the rich schema, it supplies enough context to select and invoke this complex tool, including execution modes, advanced options, captcha policy, and browser binding. Because there is no output schema, it would be more complete if it described the successful reply result and what callers receive or should do after timeout or asynchronous submission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The 'Supports model|mode|toggles|tools|files|onCaptcha|ensureTab' list and wait:false example improve discoverability but add little meaning beyond the schema's defaults, enums, and detailed field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives the exact action and resource: sending a prompt to a new or existing chat through a bound browser and obtaining the assistant reply. The explicit comparison with chats_create+chats_send further distinguishes it from sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to prefer chat_ask over chats_create+chats_send when the reply is needed and provides both wait:false and jobs_enqueue kind=ask for non-blocking execution. 'Requires browsers_bind' also supplies a concrete setup prerequisite.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.