Skip to main content
Glama

jobs_enqueue

Queue a background browser job (ask, export, batch, library ingest, or delete) on a bound Chrome lane and return a job ID immediately; poll status or cancel separately.

Instructions

Enqueue a background job on the bound browser lane (ask, export, export_batch, library_ingest, delete, delete_batch) and return job_id immediately. Prefer library_ingest to fill the local SQLite+FTS library without writing export files (then chats_search offline). Prefer export/export_batch for durable files. Paywall host_state does not block export/library_ingest. Captcha is never auto-solved. Poll with jobs_status; cancel with jobs_cancel. Requires browsers_bind; delete kinds need confirm + allowDestructive.

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": {
      "kind": "<kind>",
      "platform": "<platform>"
    },
    "name": "jobs_enqueue"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMax items for batch jobs
kindYesBackground job kind for the bound browser lane
modeNoProvider mode id for ask
filesNoAttachments for ask
modelNoProvider model id for ask
queryNoOptional filter query for batch discovery
titleNoOptional title when creating a chat for ask
toolsNoProvider tool ids for ask
branchNoBranch selector when applicable
chatIdNoTarget chat id for ask/export/delete
outDirNoOutput directory for export kinds
promptNoPrompt text when kind=ask
schemaNoExport text schema for export kinds
chatIdsNoChat ids for batch export/delete/library_ingest
confirmNoRequired true for delete/delete_batch
formatsNoExport formats for export kinds (or library_ingest with writeFiles)
togglesNoProvider toggle ids for ask
platformYesProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax
testOnlyNoWhen true, validate only without mutating
browserIdNoOverride bound browserId for this job
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_sNoPer-op timeout seconds for ask-like work (10-600; kimi/zai/minimax may need >300)
writeFilesNolibrary_ingest only: when true also write export files (default false = cache only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.1.1
    • changedInput schema / properties / chatIds / description
      Previous value: -"Chat ids for batch export/delete"New value: +"Chat ids for batch export/delete/library_ingest"
    • addedInput schema / properties / ensureTab
      Added value: +{
      +  "description": "If true, tabs_ensure before the mutate when needed (default false)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / formats / description
      Previous value: -"Export formats for export kinds"New value: +"Export formats for export kinds (or library_ingest with writeFiles)"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "ask",
      -  "export",
      -  "export_batch",
      -  "delete",
      -  "delete_batch"
      -]New value: +[
      +  "ask",
      +  "export",
      +  "export_batch",
      +  "library_ingest",
      +  "delete",
      +  "delete_batch"
      +]
    • 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: -"Per-op timeout seconds for ask-like work (10-300)"New value: +"Per-op timeout seconds for ask-like work (10-600; kimi/zai/minimax may need >300)"
    • changedInput schema / properties / timeout_s / maximum
      Previous value: -300New value: +600
    • addedInput schema / properties / writeFiles
      Added value: +{
      +  "description": "library_ingest only: when true also write export files (default false = cache only)",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv1.0.7
    • addedInput schema / properties / schema
      Added value: +{
      +  "description": "Export text schema for export kinds",
      +  "enum": [
      +    "chat-export/1",
      +    "sharegpt/1"
      +  ],
      +  "type": "string"
      +}
  3. Changed24 schema fields changedv1.0.4
    • addedInput schema / properties / branch / description
      Added value: +"Branch selector when applicable"
    • addedInput schema / properties / browserId / description
      Added value: +"Override bound browserId for this job"
    • addedInput schema / properties / chatId / description
      Added value: +"Target chat id for ask/export/delete"
    • addedInput schema / properties / chatIds / description
      Added value: +"Chat ids for batch export/delete"
    • addedInput schema / properties / confirm / description
      Added value: +"Required true for delete/delete_batch"
    • addedInput schema / properties / files / description
      Added value: +"Attachments for ask"
    • 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 / formats / description
      Added value: +"Export formats for export kinds"
    • addedInput schema / properties / formats / items / description
      Added value: +"Export format id supported by the extension builders"
    • addedInput schema / properties / kind / description
      Added value: +"Background job kind for the bound browser lane"
    • addedInput schema / properties / max / description
      Added value: +"Max items for batch jobs"
    • addedInput schema / properties / mode / description
      Added value: +"Provider mode id for ask"
    • addedInput schema / properties / model / description
      Added value: +"Provider model id for ask"
    • addedInput schema / properties / outDir / description
      Added value: +"Output directory for export kinds"
    • 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: +"Prompt text when kind=ask"
    • addedInput schema / properties / query / description
      Added value: +"Optional filter query for batch discovery"
    • addedInput schema / properties / testOnly / description
      Added value: +"When true, validate only without mutating"
    • addedInput schema / properties / timeout_s / description
      Added value: +"Per-op timeout seconds for ask-like work (10-300)"
    • addedInput schema / properties / title / description
      Added value: +"Optional title when creating a chat for ask"
    • addedInput schema / properties / toggles / description
      Added value: +"Provider toggle ids for ask"
    • addedInput schema / properties / tools / description
      Added value: +"Provider tool ids for ask"
  4. First observedv1.0.3

TDQS

A4.7/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: paywall host_state does not block export/library_ingest, captcha is never auto-solved, deletion requires confirm plus allowDestructive, and the call returns immediately rather than blocking. One mild tension is left unaddressed — destructiveHint is false yet the definition describes delete kinds, and it does not say what happens to a queued job that fails after enqueueing.

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

Conciseness5/5

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

Front-loaded with purpose and return behavior, then preferences, then failure modes, then the lifecycle pointers. Every sentence carries a distinct decision-relevant fact with no restatement of the name or schema.

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

Completeness5/5

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

For a 24-parameter, non-idempotent, open-world tool with no output schema, the definition covers the essentials: what is enqueued, that a job_id comes back, how to check or cancel it, gating preconditions, and captcha/paywall behavior. Nothing an agent needs before calling is missing.

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

Parameters4/5

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

Schema coverage is 100%, so most parameter meaning is already documented. The description still contributes beyond the schema by tying delete kinds to "confirm + allowDestructive" — allowDestructive is not a schema parameter at all, so that prerequisite is information only the description supplies.

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?

States a specific verb and resource ("Enqueue a background job on the bound browser lane") and enumerates the exact kinds. It also states the return contract ("return job_id immediately"), which distinguishes it from synchronous siblings like chat_ask and chats_export.

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?

Explicitly routes between alternatives: library_ingest for the offline SQLite+FTS library, export/export_batch for durable files, plus jobs_status to poll and jobs_cancel to cancel. It also states a precondition ("Requires browsers_bind") and a gating rule for delete kinds, so an agent knows when this tool is appropriate and what must precede it.

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