This is the full developer documentation for Elicitly # Introduction > Make MCP elicitation easy to test — and its support visible. **Elicitly makes human-in-the-loop easy for AI agents and [Agent Skills](https://agentskills.io/) — and champions the MCP elicitation standard.** Agents — and the skills they run — increasingly take consequential actions, so they need clean, reliable ways to pause and ask a human: confirm, choose, fill a form, approve. MCP’s native answer is **elicitation**, but only an MCP *server* can trigger it — and a skill author shouldn’t have to roll their own server just to ask a question. Elicitly is that server: connect it, and your skill raises real elicitation dialogs with no bespoke plumbing. Cross-host support for MCP elicitation is also inconsistent, and often “advertised but broken.” Elicitly makes that gap **visible and testable** too. ## Editions [Section titled “Editions”](#editions) * **Free** — a local (stdio) MCP server, [`elicitly`](/docs/free/): the `elicit_doctor`, `elicit_form`, and `elicit_confirm` tools. Test and exercise elicitation anywhere. (Open source.) * **Pro** — hosted and authenticated. **Everything in Free**, plus URL-mode approval / credential flows with a persisted, auditable, TTL-bounded review trail. See the [Approval Flow](/docs/pro/approval-flow/). Upgrading is a migration to one endpoint, not a second server to run. * **Enterprise** — self-host in your own cloud, SSO / SAML, compliance. ## Start here [Section titled “Start here”](#start-here) * [Install the Free Edition](/docs/free/install/) — get the local stdio server running in your MCP host. * [Install the Pro Edition](/docs/pro/install/) — sign up and register the hosted endpoint; nothing to run. * [Tools reference](/docs/tools/) — every tool’s contract, one page each, badged Free or Pro. * [The Narrated Gate](/docs/elicitation/narrated-gate/) — why a confirmation written in prose can be satisfied by narration, and a tool call cannot. * [Elicitation Support Matrix](/docs/elicitation/support-matrix/) — which hosts actually support elicitation, form and URL modes. * [MCP Protocol Support](/docs/elicitation/protocol-support/) — which protocol revisions Elicitly speaks, and how it evolves with the spec. # Changelog > User-visible changes to the Elicitly hosted service and site, by production deploy. User-visible changes to the hosted Pro Edition and this site, dated by production deploy — newest first. Internal refactors and dependency housekeeping are omitted. The Free Edition’s npm packages keep their own release notes: [`elicitly`](https://www.npmjs.com/package/elicitly?activeTab=versions) and [`@elicitly/tools`](https://www.npmjs.com/package/@elicitly/tools?activeTab=versions). ## 2026-12-02 [Section titled “2026-12-02”](#2026-12-02) * **Fixed: only Elicitly’s own controls submit a selection.** On the review page for [`elicit_selection`](/docs/tools/elicit_selection/), form controls in a row, heading, footer or hover template (inputs, buttons, selects and forms) are now removed, so only Elicitly’s radio buttons and checkboxes submit a choice. Before, a template could submit an option other than the one the reviewer picked. We found no request that did. * **Fixed: `elicit_display` keeps templates in their sandbox.** When an MCP host blocks the template’s frame, [`elicit_display`](/docs/tools/elicit_display/) now shows the template’s text only. Before, a template’s code could run outside its sandbox in that case. The Free Edition has the same fix in 0.8.10 ([GHSA-7wvg-xx3x-272j](https://github.com/elicitly/elicitly/security/advisories/GHSA-7wvg-xx3x-272j)). ## 2026-12-01 [Section titled “2026-12-01”](#2026-12-01) * **Every tool now states all four MCP tool hints.** Each tool now tells your MCP client whether it only reads, whether it can delete or overwrite anything, whether repeating a call changes anything more, and whether it reaches services outside Elicitly. Before, some were left out, and the MCP spec’s defaults applied. What the tools do is unchanged, but clients and directories that expect every hint now find all four. The Free Edition does the same from 0.8.8. ## 2026-11-30 [Section titled “2026-11-30”](#2026-11-30) * **Fixed: a security issue on the review page.** Specially crafted text in a form request, such as a field title or a button label, could run as script on that request’s review page. It is now always treated as text. Thanks to [HOG3](https://hog3.com) for reporting it. See our [security policy](/security/) to report an issue. * **Pages now limit where scripts come from.** The app’s pages send a Content-Security-Policy, so only Elicitly’s own scripts and your display template’s run there; an injected script, as in the issue above, is refused. Display templates keep their `{% for i in context.invoices %}{% endfor %}
{{ i.number }}{{ i.amount }}
", "context": { "invoices": [ { "number": "INV-1041", "amount": "$1,200" }, { "number": "INV-1043", "amount": "$2,450" }, { "number": "INV-1047", "amount": "$560" } ] } } ``` ## Output [Section titled “Output”](#output) The rendered HTML is **not** returned to the model. It travels in the result’s `_meta` (`_meta["elicitly/display"]`), which hosts deliver to the view but keep out of the model’s context. The model gets a short text result: your `summary` (or `Displayed "".`), plus a note when something needs its attention: ![Sequence: the model calls elicit_display through the host; Elicitly renders the template and returns a summary, with the HTML in \_meta. The host passes only the summary and notes to the model and the HTML to a sandboxed view, which loads images and styles only from jsDelivr or the Pro resource proxy.](/d2/docs/docs/tools/elicit_display-0.svg) * **The host didn’t advertise MCP Apps** — the user may not see the render, so the note asks the model to present the key information in its reply too. * **The template references blocked origins** — the note names each origin the view will block (with a reference count) and the allowed ones, so the model can fix the template instead of guessing. On the hosted Pro server the result also carries `structuredContent`, with the same notes — some clients give the model only `structuredContent` and drop the text: ```json { "summary": "Three open invoices totalling $4,210.", "blockedOrigins": [{ "origin": "https://upload.wikimedia.org", "references": 1 }], "appsAdvertised": true, "notes": [ "The view blocks content from https://upload.wikimedia.org (1 reference), so it won't load. …" ] } ``` `appsAdvertised` is whether the host advertised MCP Apps support — `null` when the server couldn’t tell. A template that fails to parse or render returns a tool error with the template engine’s message, so the model can correct it. ## Images, scripts, and styles [Section titled “Images, scripts, and styles”](#images-scripts-and-styles) The view runs in the host’s sandbox under a fixed Content Security Policy. Templates may load from: * **`https://cdn.jsdelivr.net`** — always. Load Tailwind (`https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4`) and DaisyUI (`https://cdn.jsdelivr.net/npm/daisyui@5`) with your own `<script>` / `<link>` tags. The view sets `data-theme` to the host’s light/dark theme, so DaisyUI follows it. * **Origins you allow.** * *Pro (hosted):* an organization admin lists them under **Organization → elicit_display allowed origins** in the dashboard (up to 20; wildcard subdomains such as `https://*.example.com` work). Templates keep using the normal URLs: when the tool renders, the server rewrites them to signed links on Elicitly’s resource proxy, which fetches the image, stylesheet, font or script for the view. The links are bound to your organization and expire after 30 days, and removing an origin stops its links from loading within about a minute — including in past renders. The proxy serves only images, stylesheets, fonts and scripts (up to 5 MB each), and its requests carry no user or organization details. * *Free (local):* set `ELICITLY_DISPLAY_RESOURCE_DOMAINS` to comma-separated `https://` origins (e.g. `https://upload.wikimedia.org`), or fill in **elicit_display: extra allowed origins** in the Claude Desktop extension’s settings. Wildcard subdomains (`https://*.example.com`) work. * **`data:` URIs** — for images that aren’t publicly reachable (generated, read from a local file, or from a private source). Pass them in `context` rather than the template: 64 KB versus 32 KB. Everything else is blocked, and the tool’s result tells the model which origins it used that aren’t allowed, so it can drop them or ask you to allow them. The model is told not to download public images to get around the policy. Links in a template open in the user’s browser (the view routes clicks through the host), so they don’t need `target="_blank"` here. ## Examples [Section titled “Examples”](#examples) ### A carousel with images and links: Jupiter’s moons [Section titled “A carousel with images and links: Jupiter’s moons”](#a-carousel-with-images-and-links-jupiters-moons) Cards the user swipes through, each with an image, a few facts, and a link to read more. The images come from `https://upload.wikimedia.org`, so the origin must be allowed first (see [above](#images-scripts-and-styles)); the Wikipedia links need nothing — the host opens them in the browser. ```json { "summary": "Jupiter and its four Galilean moons — Io, Europa, Ganymede and Callisto — with size, orbit and a link to each on Wikipedia.", "template": "<link href=\"https://cdn.jsdelivr.net/npm/daisyui@5\" rel=\"stylesheet\"><script src=\"https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4\"></script>{% assign p = context.planet %}<div class=\"flex items-center gap-4 mb-4\"><img src=\"{{ p.image }}\" alt=\"{{ p.name }}\" class=\"size-20 rounded-full bg-black shrink-0\"><div><h2 class=\"text-lg font-bold\">{{ p.name }}</h2><p>{{ p.blurb }}</p><a class=\"link\" href=\"{{ p.url }}\">{{ p.name }} on Wikipedia</a></div></div><div class=\"carousel carousel-center w-full gap-3 pb-2 motion-reduce:scroll-auto focus-visible:outline-2 focus-visible:outline-primary rounded-box\"tabindex=\"0\" role=\"region\" aria-label=\"Moons — scroll sideways for more\">{% for m in context.moons %}<div class=\"carousel-item w-64\"><div class=\"card bg-base-200 w-full\"><figure class=\"bg-black\"><img src=\"{{ m.image }}\" alt=\"{{ m.name }}\" class=\"h-36 object-contain\"></figure><div class=\"card-body p-4 gap-1\"><h3 class=\"card-title text-base\">{{ m.name }}<span class=\"badge badge-sm\">{{ forloop.index }} of {{ forloop.length }}</span></h3><p>{{ m.fact }}</p><p class=\"text-sm\">{{ m.diameterKm }} km across · orbits in {{ m.orbitDays }} days</p><a class=\"link\" href=\"{{ m.url }}\">{{ m.name }} on Wikipedia</a><p class=\"text-xs mt-1\">Image: {{ m.credit }}</p></div></div></div>{% endfor %}</div>", "context": { "planet": { "name": "Jupiter", "blurb": "The largest planet: 139,820 km across, one orbit every 11.86 years.", "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Jupiter_OPAL_2024.png/330px-Jupiter_OPAL_2024.png", "url": "https://en.wikipedia.org/wiki/Jupiter" }, "moons": [ { "name": "Io", "fact": "The most volcanically active body in the Solar System.", "diameterKm": "3,643", "orbitDays": "1.77", "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/07/Io_highest_resolution_natural_color.png/330px-Io_highest_resolution_natural_color.png", "url": "https://en.wikipedia.org/wiki/Io_(moon)", "credit": "NASA (public domain)" }, { "name": "Europa", "fact": "An ice shell over a salty ocean that may hold more water than Earth's.", "diameterKm": "3,122", "orbitDays": "3.55", "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Europa_-_Perijove_45_%28cropped%29.png/330px-Europa_-_Perijove_45_%28cropped%29.png", "url": "https://en.wikipedia.org/wiki/Europa_(moon)", "credit": "NASA/JPL-Caltech/SwRI/MSSS/Kevin M. Gill (CC BY 2.0)" }, { "name": "Ganymede", "fact": "The largest moon in the Solar System — bigger than Mercury.", "diameterKm": "5,268", "orbitDays": "7.15", "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Ganymede_-_Perijove_34_Composite.png/330px-Ganymede_-_Perijove_34_Composite.png", "url": "https://en.wikipedia.org/wiki/Ganymede_(moon)", "credit": "NASA/JPL-Caltech/SwRI/MSSS/Kevin M. Gill (CC BY 2.0)" }, { "name": "Callisto", "fact": "One of the most heavily cratered surfaces known.", "diameterKm": "4,821", "orbitDays": "16.69", "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c6/Callisto_VGR2_C2060635_OGB.png/330px-Callisto_VGR2_C2060635_OGB.png", "url": "https://en.wikipedia.org/wiki/Callisto_(moon)", "credit": "NASA / zelario12 (CC BY-SA 2.0)" } ] } } ``` template — expanded for readability ```liquid <link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> {% assign p = context.planet %} <div class="flex items-center gap-4 mb-4"> <img src="{{ p.image }}" alt="{{ p.name }}" class="size-20 rounded-full bg-black shrink-0"> <div> <h2 class="text-lg font-bold">{{ p.name }}</h2> <p>{{ p.blurb }}</p> <a class="link" href="{{ p.url }}">{{ p.name }} on Wikipedia</a> </div> </div> <div class="carousel carousel-center w-full gap-3 pb-2 motion-reduce:scroll-auto focus-visible:outline-2 focus-visible:outline-primary rounded-box" tabindex="0" role="region" aria-label="Moons — scroll sideways for more"> {% for m in context.moons %} <div class="carousel-item w-64"> <div class="card bg-base-200 w-full"> <figure class="bg-black"><img src="{{ m.image }}" alt="{{ m.name }}" class="h-36 object-contain"></figure> <div class="card-body p-4 gap-1"> <h3 class="card-title text-base">{{ m.name }} <span class="badge badge-sm">{{ forloop.index }} of {{ forloop.length }}</span></h3> <p>{{ m.fact }}</p> <p class="text-sm">{{ m.diameterKm }} km across · orbits in {{ m.orbitDays }} days</p> <a class="link" href="{{ m.url }}">{{ m.name }} on Wikipedia</a> <p class="text-xs mt-1">Image: {{ m.credit }}</p> </div> </div> </div> {% endfor %} </div> ``` What the user sees, inline in the conversation The carousel is DaisyUI’s, which scrolls with CSS alone — swipe, trackpad, or focus it and use the arrow keys. The next card peeks in at the edge, so it’s clear there’s more. ### A ranked list with photos: top salespeople [Section titled “A ranked list with photos: top salespeople”](#a-ranked-list-with-photos-top-salespeople) A leaderboard a sales skill can show before asking who should take the next big account. Four people have photos; the fifth has none, so the template falls back to initials — computed in the template, not sent in `context`. ```json { "title": "Top salespeople — October", "summary": "The top five salespeople by sales this month, with quarter and year-to-date totals and progress to quarterly quota.", "template": "<link href=\"https://cdn.jsdelivr.net/npm/daisyui@5\" rel=\"stylesheet\"><script src=\"https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4\"></script><ol class=\"@container list bg-base-100 rounded-box\">{% for p in context.people %}<li class=\"list-row items-center\"><span class=\"text-2xl font-bold tabular-nums w-6 text-center\">{{ forloop.index }}</span>{% if p.photo %}<div class=\"avatar\"><div class=\"w-14 rounded-full\"><img src=\"{{ p.photo }}\" alt=\"\"></div></div>{% else %}{% assign parts = p.name | split: \" \" %}<div class=\"avatar avatar-placeholder\"><div class=\"w-14 rounded-full bg-neutral text-neutral-content\"><span class=\"text-lg\">{{ parts.first | slice: 0 }}{{ parts.last | slice: 0 }}</span></div></div>{% endif %}<div class=\"list-col-grow\"><div class=\"font-semibold\">{{ p.name }}</div><div class=\"text-sm\">{{ p.region }}</div><progress class=\"progress progress-primary w-full max-w-48\" value=\"{{ p.quotaPct }}\" max=\"100\"aria-label=\"{{ p.name }}: {{ p.quotaPct }}% of quarterly quota\"></progress><div class=\"text-xs\">{{ p.quotaPct }}% of quarterly quota</div></div><dl class=\"@max-md:row-start-2 @max-md:col-start-2 @max-md:col-span-2 @max-md:text-left grid grid-cols-3 gap-x-4 text-right tabular-nums\"><dt class=\"text-xs\">Month</dt><dt class=\"text-xs\">Quarter</dt><dt class=\"text-xs\">Year</dt><dd class=\"font-semibold\">{{ p.month }}</dd><dd>{{ p.quarter }}</dd><dd>{{ p.year }}</dd></dl></li>{% endfor %}</ol>", "context": { "people": [ { "name": "Mei Chen", "region": "West", "month": "$184K", "quarter": "$512K", "year": "$1.92M", "quotaPct": 118, "photo": "https://www.elicitly.ai/examples/salespeople/mei-chen.jpg" }, { "name": "Marcus Johnson", "region": "Central", "month": "$171K", "quarter": "$468K", "year": "$1.74M", "quotaPct": 109, "photo": "https://www.elicitly.ai/examples/salespeople/marcus-johnson.jpg" }, { "name": "Sofia Ramirez", "region": "Southeast", "month": "$158K", "quarter": "$455K", "year": "$1.61M", "quotaPct": 104 }, { "name": "Arjun Mehta", "region": "Northeast", "month": "$149K", "quarter": "$431K", "year": "$1.58M", "quotaPct": 98, "photo": "https://www.elicitly.ai/examples/salespeople/arjun-mehta.jpg" }, { "name": "Grace Okafor", "region": "EMEA", "month": "$142K", "quarter": "$402K", "year": "$1.49M", "quotaPct": 95, "photo": "https://www.elicitly.ai/examples/salespeople/grace-okafor.jpg" } ] } } ``` template — expanded for readability ```liquid <link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> <ol class="@container list bg-base-100 rounded-box"> {% for p in context.people %} <li class="list-row items-center"> <span class="text-2xl font-bold tabular-nums w-6 text-center">{{ forloop.index }}</span> {% if p.photo %} <div class="avatar"><div class="w-14 rounded-full"><img src="{{ p.photo }}" alt=""></div></div> {% else %} {% assign parts = p.name | split: " " %} <div class="avatar avatar-placeholder"><div class="w-14 rounded-full bg-neutral text-neutral-content"> <span class="text-lg">{{ parts.first | slice: 0 }}{{ parts.last | slice: 0 }}</span> </div></div> {% endif %} <div class="list-col-grow"> <div class="font-semibold">{{ p.name }}</div> <div class="text-sm">{{ p.region }}</div> <progress class="progress progress-primary w-full max-w-48" value="{{ p.quotaPct }}" max="100" aria-label="{{ p.name }}: {{ p.quotaPct }}% of quarterly quota"></progress> <div class="text-xs">{{ p.quotaPct }}% of quarterly quota</div> </div> <dl class="@max-md:row-start-2 @max-md:col-start-2 @max-md:col-span-2 @max-md:text-left grid grid-cols-3 gap-x-4 text-right tabular-nums"> <dt class="text-xs">Month</dt><dt class="text-xs">Quarter</dt><dt class="text-xs">Year</dt> <dd class="font-semibold">{{ p.month }}</dd><dd>{{ p.quarter }}</dd><dd>{{ p.year }}</dd> </dl> </li> {% endfor %} </ol> ``` What the user sees, inline in the conversation Top salespeople — October To try it as written, allow `https://www.elicitly.ai`, where the sample photos live. In your own skill, photos would come from your CRM or intranet — an origin you allow once (Pro: for the whole organization) — or as `data:` URIs in `context`. ## When the host can’t render [Section titled “When the host can’t render”](#when-the-host-cant-render) Not every host renders MCP Apps. The tool still works there: it returns the text result, with a note that tells the model to present the information itself. For the Jupiter example, a host without MCP Apps (the Claude Code CLI, say) gives the model: ```text Jupiter and its four Galilean moons — Io, Europa, Ganymede and Callisto — with size, orbit and a link to each on Wikipedia. However, this host did not advertise MCP Apps support, so the user may not see the render — present the key information in your reply as well. ``` The model already has the data — it wrote the `context` — so the user still gets an answer, in Markdown, the way chat answers always looked: ```markdown Jupiter's four Galilean moons: | Moon | Diameter | Orbit | Notable for | | --- | --- | --- | --- | | Io | 3,643 km | 1.77 days | Most volcanically active body in the Solar System | | Europa | 3,122 km | 3.55 days | Ice shell over a salty ocean | | Ganymede | 5,268 km | 7.15 days | Largest moon in the Solar System | | Callisto | 4,821 km | 16.69 days | Heavily cratered surface | ``` Same facts, but the pictures and the at-a-glance layout are gone — which is the difference `elicit_display` makes where hosts support it. ## Host support [Section titled “Host support”](#host-support) MCP Apps is an extension to MCP, and support varies by host. Verified so far: * **Claude Desktop** renders inline from the local `elicitly` server and the Claude Desktop extension, follows the host theme, and offers fullscreen. In turns where the agent also runs commands, Claude Desktop groups the steps and shows the call as a collapsed row instead of the inline view. * **Claude** (claude.ai) renders inline from the hosted server and follows the host theme. * **Claude Code in the Claude desktop app** renders inline from the hosted server (connectors there reach it through claude.ai). * **Claude Code CLI** doesn’t advertise MCP Apps, so nothing renders; the model gets the note to present the information itself. It reads `structuredContent` rather than the text, which is why the notes are in both. * **ChatGPT** renders inline from the hosted server through the standard MCP Apps metadata, follows the host theme (including a light/dark switch while the render stays open), opens fullscreen as a side panel beside the chat, and opens template links in the browser. ChatGPT passes `structuredContent` to the model as well, so the model also sees `{ summary, blockedOrigins, appsAdvertised, notes }`. Hosts that don’t support MCP Apps still get the text result — with the note asking the model to present the information itself. See the MCP [client matrix](https://modelcontextprotocol.io/extensions/client-matrix) for other hosts. ## See also [Section titled “See also”](#see-also) * [Templates](/docs/templates/) — the shared template contract. * [MCP Apps](https://modelcontextprotocol.io/extensions/apps/overview) — the extension `elicit_display` renders through. # elicit_doctor > Report the connected host's client-feature support — and optionally probe it live. Reports the connected host’s support for the client features — [Elicitation, Roots, and Sampling](https://modelcontextprotocol.io/docs/learn/client-concepts) — and, with `probeElicitation: true`, runs one live elicitation round-trip and classifies the result. ## When to use [Section titled “When to use”](#when-to-use) Before relying on [`elicit_confirm`](/docs/tools/elicit_confirm/) or [`elicit_form`](/docs/tools/elicit_form/) in an unfamiliar host — advertising a capability is not the same as implementing it, and the probe catches the difference. Also the tool behind every [Support Matrix](/docs/elicitation/support-matrix/) entry. ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | ------------------ | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `probeElicitation` | boolean | no | Default `false`. When `true`, fire one real form-mode elicitation and record what happened — this prompts the user. | | `share` | boolean | no | **Pro Edition only.** Default `false`. When `true`, contribute the finished report to the [Support Matrix](/docs/elicitation/support-matrix/) evidence queue — see below. | | `productName` | string | no | **Pro, with `share`.** The host product’s name (e.g. “Claude Code”) — the report only sees the embedded MCP client, not the product around it. | | `productVersion` | string | no | **Pro, with `share`.** The host product’s version. | | `notes` | string | no | **Pro, with `share`.** Anything unusual about the setup (OS, flags, enterprise policy). | ```json { "probeElicitation": false } ``` ### Sharing a fingerprint (Pro Edition) [Section titled “Sharing a fingerprint (Pro Edition)”](#sharing-a-fingerprint-pro-edition) On the hosted server, `share: true` stores the report — plus whatever `productName` / `productVersion` / `notes` you volunteered — in the [Support Matrix](/docs/elicitation/support-matrix/)’s evidence queue, tied to your authenticated account. The report contains the handshake echo, capability booleans, and probe verdicts — no elicitation payloads and no conversation content. The result then carries `shared: true` (or `shared: false` with a `shareError` if storage failed; you still get your report). Sharing never happens unless you pass `share: true`. The easiest way to contribute is the server’s [**`contribute-fingerprint` prompt**](/docs/prompts/contribute-fingerprint/) (shown by hosts that support MCP prompts — in Claude Code it appears as a slash command), which collects the metadata and consent, then makes this call for you. The matrix itself stays curated: contributions are evidence for review, and no matrix cell changes automatically. ## The report’s three layers [Section titled “The report’s three layers”](#the-reports-three-layers) * **`initialize`** — the [initialize handshake](https://modelcontextprotocol.io/specification/2025-11-25/basic/lifecycle), echoed verbatim: `request` is what the client sent (as the SDK retained it), `response` is what the server replied. * **`support`** — Elicitly’s *interpretation*: derived booleans applying the spec’s rules. * **`probes`** — Elicitly’s *active experiments* (opt-in): what actually happened when the feature was exercised, which can disagree with what was advertised. ## Output [Section titled “Output”](#output) The passive report (no probe): ```json { "initialize": { "request": { "clientInfo": { "name": "claude-code", "version": "2.1.76" }, "capabilities": { "elicitation": { "form": {} }, "sampling": {}, "roots": { "listChanged": true } } }, "response": { "protocolVersion": "2025-11-25", "capabilities": { "tools": { "listChanged": true } }, "serverInfo": { "name": "elicitly", "version": "0.1.0" } } }, "support": { "elicitation": true, "elicitationForm": true, "elicitationUrl": false, "sampling": true, "roots": true } } ``` * `initialize.request` has no `protocolVersion` because the SDK does not retain the client’s *requested* version; the *negotiated* version is what matters and appears in `initialize.response`. (The SDK also normalizes the empty-object shorthand: a client that sent `elicitation: {}` is retained as `elicitation: { "form": {} }`.) * `support.elicitationForm` — the host advertises **form**-mode elicitation (an empty `elicitation: {}` counts, per spec). * `support.elicitationUrl` — the host advertises **url**-mode elicitation. With `probeElicitation: true`, the report adds `probes.elicitationForm`: ```json { "probes": { "elicitationForm": { "attempted": true, "action": "accept", "latencyMs": 1840, "data": "ok", "verdict": "working" } } } ``` `verdict` is one of: | verdict | meaning | | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | `working` | the user accepted; elicitation round-trips correctly | | `user_declined` | the user declined/cancelled after a real prompt | | `advertised_but_autocanceled` | advertised, but the “no” came back faster than a human plausibly could (`< 2000 ms`) — the host auto-answered without ever asking anyone | | `advertised_but_unanswered` | advertised, but no answer arrived before the request timeout — a human may have left the dialog open, or the host silently dropped it | | `unsupported` | the call threw / errored | **How long the probe waits:** on the hosted Pro server the probe gives up after **40 seconds** — deliberately below the \~60-second tool-call limit common to MCP hosts (Claude Desktop among them) — so a host that never delivers the dialog still returns the finished report in-band, with `advertised_but_unanswered` as the verdict, instead of the host killing the call first. The Free (stdio) edition currently waits the MCP SDK’s default 60 seconds. If the host never advertised elicitation, the probe is skipped: ```json { "probes": { "elicitationForm": { "attempted": false, "reason": "client did not advertise elicitation" } } } ``` ## Examples [Section titled “Examples”](#examples) ### A quiet checkup [Section titled “A quiet checkup”](#a-quiet-checkup) No arguments needed — the passive report never prompts the user: ```json {} ``` Read `support` for the verdict at a glance: if `elicitationForm` is `false`, [`elicit_confirm`](/docs/tools/elicit_confirm/) and [`elicit_form`](/docs/tools/elicit_form/) cannot raise a dialog in this host. ### Catching a broken host in the act [Section titled “Catching a broken host in the act”](#catching-a-broken-host-in-the-act) The probe is where `elicit_doctor` earns its name — advertising a capability is not the same as implementing it: ```json { "probeElicitation": true } ``` On a host that advertises elicitation but auto-cancels it, the report shows the contradiction directly — `support` says yes, the probe says no: ```json { "support": { "elicitation": true, "elicitationForm": true }, "probes": { "elicitationForm": { "attempted": true, "action": "cancel", "latencyMs": 8, "data": null, "verdict": "advertised_but_autocanceled" } } } ``` No human can decline a dialog in 8 milliseconds — the host cancelled it before anyone saw it. That fingerprint is exactly what the [Support Matrix](/docs/elicitation/support-matrix/) records; contribute your host’s report there. ## Related [Section titled “Related”](#related) * [`elicit_confirm`](/docs/tools/elicit_confirm/) / [`elicit_form`](/docs/tools/elicit_form/) — the tools whose viability the report answers * [Support Matrix](/docs/elicitation/support-matrix/) — reports from known hosts # elicit_form > Fire a form elicitation with your own JSON schema; returns the raw {action, content}. Fire a form elicitation with your own JSON schema; returns the raw `{action, content}`. ## When to use [Section titled “When to use”](#when-to-use) You need several typed answers — text, numbers, toggles, selections — from the person at the host, in one dialog, right now. For a single yes/no, [`elicit_confirm`](/docs/tools/elicit_confirm/) is simpler; for a decision that must survive the session or reach another reviewer, use the Pro approval tools — see [Choosing a tool](/docs/tools/#choosing-a-tool). ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | ----------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `message` | string | yes | The prompt shown above the form. | | `requestedSchema` | object | yes | A JSON Schema in the [MCP elicitation subset](https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation#requested-schema): a flat object with primitive properties only. | | `timeoutSeconds` | number | no | Default `300`, clamped `60`–`3600` — how long the request waits for an answer. The default 5 minutes is deliberately more generous than a typical tool call — a form takes longer to read and fill out than a machine round-trip — but a form with several fields (like the rollout example below) may still need more; raise it accordingly. It’s capped at 1 hour rather than allowed to run indefinitely, since the request stays open on the live connection the whole time. | ```json { "message": "Enter release details", "requestedSchema": { "type": "object", "properties": { "version": { "type": "string" }, "prerelease": { "type": "boolean" } }, "required": ["version"] } } ``` ## Output [Section titled “Output”](#output) On accept, `content` holds the collected fields: ```json { "action": "accept", "content": { "version": "1.2.0", "prerelease": false } } ``` On decline, cancel, or error, `content` is `null`: ```json { "action": "decline", "content": null } ``` (`action` is the [MCP elicitation action](https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation) verbatim — `"accept"`, `"decline"`, or `"cancel"` — plus `"error"` for a timeout or host failure.) `elicit_form` is synchronous, so this Output *is* the answer — there’s no separate result to fetch. `content` follows the same rule as the hosted tools’ `formSubmission`: the submitted fields keyed by name, or `null` when the form wasn’t accepted (compare [`elicit_approval`’s Result](/docs/tools/elicit_approval/#result)). ## Examples [Section titled “Examples”](#examples) ### Every field type at once [Section titled “Every field type at once”](#every-field-type-at-once) A single form can collect every kind of input the spec supports — free text, numbers, toggles, and single- or multi-choice selections. For example, asking the user to configure a staged rollout: ```json { "message": "Configure the v2.1.0 rollout", "requestedSchema": { "type": "object", "properties": { "releaseName": { "type": "string", "title": "Release name", "description": "Shown in the changelog", "maxLength": 50 }, "rolloutPercent": { "type": "integer", "title": "Initial rollout %", "minimum": 0, "maximum": 100, "default": 10 }, "notifyCustomers": { "type": "boolean", "title": "Email customers", "default": false }, "channel": { "type": "string", "title": "Channel", "oneOf": [ { "const": "stable", "title": "Stable" }, { "const": "beta", "title": "Beta" }, { "const": "canary", "title": "Canary" } ], "default": "beta" }, "regions": { "type": "array", "title": "Regions", "minItems": 1, "items": { "type": "string", "enum": ["us-east", "eu-west", "ap-south"] }, "default": ["us-east"] } }, "required": ["releaseName", "channel", "regions"] } } ``` On accept, `content` carries one value per property: ```json { "action": "accept", "content": { "releaseName": "Halley", "rolloutPercent": 25, "notifyCustomers": true, "channel": "beta", "regions": ["us-east", "eu-west"] } } ``` Notes on the field types: * **String** (`releaseName`) — supports `minLength`/`maxLength`/`pattern` and the formats `email`, `uri`, `date`, `date-time`. * **Number** (`rolloutPercent`) — `"integer"` or `"number"`, with `minimum`/`maximum`. * **Boolean** (`notifyCustomers`) — renders as a checkbox/toggle. * **Single-select enum** (`channel`) — shown here with titled options (`oneOf` + `const`/`title`); a plain `"enum": [...]` array works when the values are their own labels. * **Multi-select enum** (`regions`) — an array with `minItems`/`maxItems`; shown here with a plain `enum`, and `items.anyOf` + `const`/`title` gives the titled flavor. * All types accept a `default`, which capable hosts pre-fill. How faithfully each field renders varies by host — run [`elicit_doctor`](/docs/tools/elicit_doctor/) with `probeElicitation: true` in yours, and check the [Support Matrix](/docs/elicitation/support-matrix/). ### Capturing a lead [Section titled “Capturing a lead”](#capturing-a-lead) Forms collect business data as readily as engineering decisions. A sales skill logging a new lead: ```json { "message": "New lead from the demo call — capture the details", "requestedSchema": { "type": "object", "properties": { "fullName": { "type": "string", "title": "Full name" }, "email": { "type": "string", "title": "Work email", "format": "email" }, "company": { "type": "string", "title": "Company" }, "teamSize": { "type": "integer", "title": "Team size", "minimum": 1 }, "subscribe": { "type": "boolean", "title": "Subscribe to product updates", "default": true }, "interest": { "type": "string", "title": "Primarily interested in", "enum": ["Free", "Pro", "Enterprise"] } }, "required": ["fullName", "email", "company"] } } ``` ```json { "action": "accept", "content": { "fullName": "John Doe", "email": "john.doe@acme.example", "company": "Acme", "teamSize": 25, "subscribe": true, "interest": "Pro" } } ``` Note `"format": "email"` — capable hosts validate the field before submitting — and the plain untitled `enum`, which fits when the values are their own labels. ## Related [Section titled “Related”](#related) * [`elicit_confirm`](/docs/tools/elicit_confirm/) — the one-question special case * [`elicit_doctor`](/docs/tools/elicit_doctor/) — check what this host renders * [`elicit_approval`](/docs/tools/elicit_approval/) — the same schema subset on a hosted review page (Pro form mode) # elicit_history > Retrieve an agent's (or organization's) elicitation history — jump-to-page, drift-free. Give a calling agent a programmatic way to retrieve elicitation history — the gap the human-only [dashboards](#dashboards) leave. ## When to use [Section titled “When to use”](#when-to-use) An agent that lost an `elicitationId`, wants to reconcile what it submitted, or needs to audit past decisions has no other tool for this. It returns the summary projection only — fetch bodies by id from [`elicit_result`](/docs/tools/elicit_result/). ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | ---------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `scope` | `"me" \| "org"` | no | Default `"me"` — the caller’s own requests (mirrors the personal `/dashboard` view). `"org"` returns every request across the caller’s organization (mirrors the dashboard’s **Organization** view) and is **admins only** — a non-admin (or a caller with no organization) gets an error result, not partial data. | | `page` | number | no | 1-based. Default `1`. | | `pageSize` | number | no | `1`–`100`. Default `25`. | | `asOf` | string | no | ISO 8601 timestamp anchoring the page window. Defaults to the server’s current time. **Echoed back** in the output — pass that same value on later `page` calls to keep the window stable. See [The `asOf` anchor](#the-asof-anchor). | ```json { "scope": "me", "page": 1, "pageSize": 25 } ``` ## Output [Section titled “Output”](#output) ```json { "items": [ { "elicitationId": "…", "message": "Deploy to prod?", "status": "submitted", "createdAt": "2026-07-30T12:00:00.000Z", "decidedAt": "2026-07-30T12:04:11.000Z" } ], "page": 1, "pageSize": 25, "asOf": "2026-07-31T09:00:00.000Z", "total": 137, "scope": "me" } ``` * `items` — one summary entry per request, newest first (`createdAt DESC, elicitationId DESC`). `createdAt` and `decidedAt` are full-precision **strings**; `decidedAt` is `null` for a request that hasn’t been decided yet. * `page` / `pageSize` — echoed back (post-clamp). * `asOf` — the anchor actually used, as an ISO string: either the value you passed or the server’s `now` if you omitted it (or passed something unparseable — an unparseable `asOf` never errors, it just falls back to `now`). * `total` — the count of rows matching the scope predicate as of `asOf`, independent of `page`. Use it to compute the last page: `Math.ceil(total / pageSize)`. A `page` past the end returns `items: []` with the real `total`, not an error — so the agent can tell it overshot. * `scope` — echoed back. Item bodies — `context` and `formSubmission` — are **not** included here; fetch those by id from [`elicit_result`](/docs/tools/elicit_result/) once you have the `elicitationId`. `elicit_history` only returns the summary projection. There is no status filter yet — every request in scope is included regardless of `pending` / `submitted` / `declined` / `canceled` / `consumed` / `expired`. ## The `asOf` anchor [Section titled “The asOf anchor”](#the-asof-anchor) Unlike the dashboards’ sequential (keyset) browsing, `elicit_history` supports **jump-to-page** random access, which needs an offset plus a `total` count. Plain offset pagination normally drifts when new rows are inserted between page fetches — row 26 today might be row 27 tomorrow. `elicit_history` avoids that by pinning every page to the same `asOf` timestamp: it only ever returns rows with `createdAt <= asOf`. Because the underlying table is append-only — rows are never deleted or edited after `createdAt` is set — pinning the same `asOf` across calls freezes the exact same row set, however many new requests land in the meantime. Fetch page 1 without `asOf`, then pass the `asOf` you got back on every subsequent page for a stable, drift-free walk through the history as it stood at that moment. ## Dashboards [Section titled “Dashboards”](#dashboards) The hosted Pro server also serves a human-facing dashboard at `/dashboard`: your own history by default, and — for admins — the whole organization’s behind a **Mine / Organization** toggle, which adds a column naming who made each request. `elicit_history` mirrors its scope and authorization rules. The dashboard adds status filters and a detail page for each request (`/dashboard/requests/<elicitationId>`) showing its timeline, what the reviewer was shown, and what they submitted; admins can open any request in their organization. The dashboard is for browsing in a browser; `elicit_history` is for an agent that needs the same data back as structured tool output. ## Related [Section titled “Related”](#related) * [`elicit_result`](/docs/tools/elicit_result/) — fetch a listed request’s body by `elicitationId` * [`elicit_status`](/docs/tools/elicit_status/) — live status for one request # elicit_ping > Connectivity smoke test for the hosted Pro server. A connectivity smoke test for the hosted Pro server: proves the authenticated MCP session round-trips before you exercise the approval tools. ## When to use [Section titled “When to use”](#when-to-use) First call after connecting — or any time the approval tools misbehave and you want to rule out the session itself. A successful `pong` proves transport, auth, and tool dispatch end to end. ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------ | | `message` | string | no | Echoed back in the response. Default `"ping"` — the common zero-argument call just proves the session works. | ```json { "message": "hello" } ``` ## Output [Section titled “Output”](#output) Plain text (the one Elicitly tool that does not return JSON): ```plaintext pong: hello ``` ## Related [Section titled “Related”](#related) * [`elicit_doctor`](/docs/tools/elicit_doctor/) — diagnose the *host’s* elicitation support (a different question from server connectivity) * [Approval Flow](/docs/pro/approval-flow/) — what to exercise once the ping round-trips # elicit_proposal > Review, edit, and selectively approve a proposed record create-or-update as a multi-source diff grid. Put a human in the loop to review, edit, and selectively approve a proposed **record create-or-update**, presented as a diff grid: one or more read-only **Source** columns, a read-only **Current** column, and an editable **Proposed** column. The human corrects the Proposed values, chooses which fields to include, and submits — the result carries only the fields they included. ## When to use [Section titled “When to use”](#when-to-use) The canonical use case is enrichment/sync — e.g. populating Salesforce from Apollo, where the Source column is “Apollo” and the Current column is “Salesforce”. For a brand-new record the Current column is blank. Reach for it whenever the human should see *where each value came from* and decide field-by-field; when a single editable column with approve/reject is enough, [`elicit_approval`](/docs/tools/elicit_approval/) form mode is simpler — see [Choosing a tool](/docs/tools/#choosing-a-tool). The Proposed column reuses the same `requestedSchema` form pipeline, so it supports the same primitives — text, textarea, number/integer, checkbox, single/multi select — and the same `uri` / `email` / `date` / `date-time` formats (see [Form controls](/docs/tools/elicit_approval/#form-controls)). One addition: a plain text field also becomes a textarea when any of its Source or Current values is over 120 characters or spans lines. ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | ------------------ | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `message` | string | yes | Human-readable summary shown to the reviewer. | | `columns` | object | yes | Names the read-only columns — see [Columns and fields](#columns-and-fields). | | `requestedSchema` | object | yes | The authority for the editable Proposed column, validated the same way as `elicit_approval`’s form mode (the [MCP elicitation `requestedSchema` subset](https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation#requested-schema)). **Each property’s `default` is its initial Proposed value** — the caller writes the computed proposed value (typically “take Current if present, else Source”) as that property’s `default`. | | `fields` | object | yes | Per-property Source and Current cell values — see [Columns and fields](#columns-and-fields). | | `context` | any | no | Arbitrary passthrough context (object type, record id, external keys). Echoed back verbatim in the output. The tool does **not** interpret it — create-vs-update is entirely the caller’s concern, implied by whether `current` values are present. **Not shown to the reviewer by default** — pass `displayTemplate` to surface a header. | | `displayTemplate` | string | no | A [template](/docs/templates/) rendered **above the grid**; `context` is exposed under the `context` key (e.g. `{{ context.recordId }}`). Use it for a title or key-info banner. Without it, nothing renders above the grid. | | `labels` | object | no | `{ submit?, decline? }`, each 1–40 characters; renames the footer buttons: `submit` is the submit button (default **Submit**), `decline` the decline button (default **Decline**). Labels only rename — button placement and styling stay fixed, and the header actions are not configurable. | | `expiresInSeconds` | number | no | Default `3600` (1 hour), clamped `60`–`604800` (1 minute to 7 days) — how long the request stays decidable. | ```json { "message": "Sync Acme Holdings from Apollo into Salesforce", "columns": { "sources": [ { "key": "apollo", "label": "Apollo" }, { "key": "crunchbase", "label": "Crunchbase" } ], "current": { "label": "Salesforce" } }, "context": { "objectType": "Account", "recordId": null, "externalKey": "678cd3…" }, "requestedSchema": { "type": "object", "properties": { "name": { "type": "string", "title": "Name", "default": "Acme Holdings" }, "website": { "type": "string", "format": "uri", "title": "Website", "default": "https://www.acmeholdings.example/" }, "employeeCount": { "type": "integer", "title": "Number of Employees", "default": 230 }, "industries": { "type": "array", "title": "Industries", "items": { "enum": [ "Software", "Fintech", "Healthcare", "Manufacturing" ] }, "default": [ "Software", "Fintech" ] } }, "required": [ "name" ] }, "fields": { "name": { "sources": { "apollo": "Acme Holdings", "crunchbase": "Acme Holdings Inc." }, "current": null }, "website": { "sources": { "apollo": "https://www.acmeholdings.example/" }, "current": null }, "employeeCount": { "sources": { "apollo": 230 }, "current": null }, "industries": { "sources": { "apollo": [ "Software", "Fintech" ] }, "current": [], "include": true } } } ``` What the reviewer sees Sync Acme Holdings from Apollo into Salesforce Accept AllReject AllRestore Proposed4 of 4 included | Field | Apollo | Crunchbase | Salesforce | Proposed | Include | | ------------------- | ----------------------------------- | ------------------ | ---------- | ------------------------------------------ | ------- | | Name \* | Acme Holdings | Acme Holdings Inc. | | | | | Website | https\://www\.acmeholdings.example/ | | | | | | Number of Employees | 230 | | | | | | Industries | Software; Fintech | | | Software Fintech Healthcare Manufacturing | | SubmitDecline ### Columns and fields [Section titled “Columns and fields”](#columns-and-fields) * `columns.sources` *(array, required, ≥1)* — the read-only Source columns, in display order. Each entry has a `key` (referenced by `fields[*].sources`) and a display `label` (e.g. `"Apollo"`). * `columns.current.label` *(string, required)* — names the read-only Current column (e.g. `"Salesforce"`). * `fields` is a map keyed by `requestedSchema` property name, supplying that property’s Source and Current cell values: * Every `fields` key must be a property in `requestedSchema`. A property **absent** from `fields` is legal — it renders with blank Source/Current cells and its `default` as Proposed (a proposed-only field). * `fields[k].sources` — a map keyed by a `columns.sources[].key`. A source may omit a field (that Source cell renders blank). * `fields[k].current` — the Current value; `null`/absent renders blank. * `fields[k].include` *(boolean, optional)* — overrides the default-included rule below. Caution Per the MCP elicitation spec, `elicit_proposal` **must not** be used to request secrets, credentials, or other sensitive information from the reviewer. ## Derived behavior [Section titled “Derived behavior”](#derived-behavior) Several parts of the grid are computed by the review page, not supplied by the caller: * **Cell highlight.** A Source cell is boxed (the “differs” outline) when *its* value differs from the field’s Current value. With multiple sources, each Source cell highlights independently, so the human sees which sources disagree with the record. Absent/`null` Current is treated as empty, so on a create every populated Source cell is boxed. Array-valued fields (multiselect) are compared as **sets** (order-insensitive). * **Double-click to copy.** Double-clicking a Source cell copies that value into Proposed and turns the row’s Include on (tooltip *“Double-click to use as proposed value.”*). Double-clicking the **Current** cell (when it has a value) copies Current into Proposed and turns Include off — a quick way to revert a single field to “no change” (tooltip *“Double-click to restore the current value.”*). * **Default `include`.** A row is included by default when its Proposed value (the `default`) differs from Current; otherwise unchecked. An explicit `fields[k].include` overrides this. * **Required force-include.** A property listed in `requestedSchema.required` locks its Include checkbox **on** whenever `fields[k].current` is empty/absent — i.e. the record would otherwise lack a required value. If Current already satisfies a required field, the human may leave it unincluded. **This lock is a client-side affordance only** — it stops a human from building an incomplete record in the UI, but the server does not independently re-derive which fields “should” be included; it validates only whatever subset was actually submitted as included. ## Header actions [Section titled “Header actions”](#header-actions) The review page also offers: **Accept All** (include every row), **Reject All** (uninclude every row except required-locked ones), and **Restore Proposed** (reset every Proposed value back to its `default` and every Include back to its starting state), plus an “N of M included” counter alongside **Submit** and **Decline** (the footer pair is renamable via `labels`; the header actions and counter are fixed). ## Output [Section titled “Output”](#output) The create call returns the same envelope as the other create tools — `{ elicitationId, status: "pending", reviewUrl, expiresAt, elicitationDelivered }` — where `elicitationDelivered` is `true` only when the host advertised the `elicitation: { url: {} }` capability on a legacy (pre-`2026-07-28`) connection; `reviewUrl` always works regardless. ## Result [Section titled “Result”](#result) Once the reviewer decides, [`elicit_result`](/docs/tools/elicit_result/) returns the outcome. `formSubmission` is what the review form submitted — the fields the reviewer **included**, keyed by property name: * Submitted ```json { "status": "consumed", "decision": "submitted", "context": { "objectType": "Account", "recordId": null, "externalKey": "678cd3…" }, "formSubmission": { "name": "Acme Holdings", "website": "https://www.acmeholdings.example/", "employeeCount": 230, "industries": ["Software", "Fintech"] } } ``` * Declined ```json { "status": "consumed", "decision": "declined", "context": { "objectType": "Account", "recordId": null, "externalKey": "678cd3…" }, "formSubmission": null } ``` - `context` — echoed verbatim from the input. - `formSubmission` — only the fields the human **included**, with their final (possibly edited) Proposed values, validated against the subset of `requestedSchema` restricted to the included keys. Unincluded fields are omitted entirely — not present, not `null`. - There is no per-field audit block and no `operation` flag — every audit datum (`included`, `edited`, `changed`) is derivable by the caller from data it already holds (its own input plus `formSubmission`). - A **declined** proposal (the reviewer clicked Decline on the review page) is fetchable exactly like a submitted one — `elicit_result` returns `{ decision: "declined", formSubmission: null, … }` rather than erroring. ## Related [Section titled “Related”](#related) * [Proposal Flow](/docs/pro/proposal-flow/) — the full lifecycle, end to end * [`elicit_await`](/docs/tools/elicit_await/) / [`elicit_status`](/docs/tools/elicit_status/) — wait for the decision * [`elicit_result`](/docs/tools/elicit_result/) — fetch `decision` + `formSubmission` * [`elicit_approval`](/docs/tools/elicit_approval/) — the single-column approve/decline alternative * [Templates](/docs/templates/) — the shared template engine rules # elicit_result > Fetch a decided request's decision and data — idempotent, audit-recorded. Fetch the outcome of a decided request — the final step of the [Approval Flow](/docs/pro/approval-flow/). ## When to use [Section titled “When to use”](#when-to-use) After [`elicit_await`](/docs/tools/elicit_await/) or [`elicit_status`](/docs/tools/elicit_status/) reports a decision. Calling it earlier **errors**: while the request is still `pending`, after it has **expired undecided**, and for a request the requester **canceled** via [`elicit_cancel`](/docs/tools/elicit_cancel/) (no reviewer outcome exists). Once the reviewer has decided, it succeeds for **either** outcome — `submitted` **or** `declined` — both are fetchable, not just submissions. ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | --------------- | ------ | -------- | --------------------------------------------- | | `elicitationId` | string | yes | The id returned when the request was created. | ```json { "elicitationId": "…" } ``` ## Behavior [Section titled “Behavior”](#behavior) **Idempotent**: every fetch is recorded as a `consumed` audit event, and repeat calls return the same result — for as long as the record is retained (90 days; see [Data Retention](/docs/pro/retention/)). **A success always carries the outcome.** If `elicit_result` returns without error, `decision`, `context`, and `formSubmission` are all present — you never need to inspect the shape before trusting it. In every state where no reviewer outcome exists the call errors instead, and the error names the state so you know why: | State | Error text | | ----------------------------------------------------------- | ------------------------------- | | Still undecided | `not decided (status=pending)` | | TTL elapsed undecided | `not decided (status=expired)` | | Withdrawn via [`elicit_cancel`](/docs/tools/elicit_cancel/) | `not decided (status=canceled)` | To *read* a status without fetching an outcome, use [`elicit_status`](/docs/tools/elicit_status/) — that’s the tool that returns `{ "status": … }` for every state, including `canceled`. ## Output [Section titled “Output”](#output) ```json { "status": "consumed", "decision": "submitted", "context": { "target": "prod" }, "formSubmission": { "approver": "Ada", "confidence": 95 } } ``` * `decision` — the reviewer’s `submitted` / `declined` choice. * `context` — the read-only payload from `elicit_approval` (or `elicit_proposal`), echoed back verbatim (`null` if none was supplied). Never a value the agent re-supplies — the human approved what actually runs. * `formSubmission` — what the review form submitted, keyed by field name, or `null` on decline. Every review-page tool uses this one envelope; only the form’s fields differ: | Tool | `formSubmission` on submit | | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | [`elicit_approval`](/docs/tools/elicit_approval/#result) | The `requestedSchema` fields, validated — `null` in JSON mode (no `requestedSchema`, so the form has no fields) | | [`elicit_selection`](/docs/tools/elicit_selection/#result) | `{ "selectedIds": [...] }` — the chosen option `id`s | | [`elicit_proposal`](/docs/tools/elicit_proposal/#result) | Only the fields the reviewer included, validated — unincluded fields are absent | A declined request is fetchable like a submitted one — `decision: "declined"` with `formSubmission: null` — rather than erroring. ## Related [Section titled “Related”](#related) * [`elicit_await`](/docs/tools/elicit_await/) / [`elicit_status`](/docs/tools/elicit_status/) — reach a decided state first * [`elicit_history`](/docs/tools/elicit_history/) — recover a lost `elicitationId` # elicit_selection > Ask a human to choose one or more options from a caller-supplied list — disambiguation with a native, non-spoofable selector. Ask a human to choose one or more options from a caller-supplied list (disambiguation), on the hosted review page. The chosen `id`s come back via [`elicit_result`](/docs/tools/elicit_result/). ## When to use [Section titled “When to use”](#when-to-use) The question is “which of these did you mean?” — the agent already has the candidates and needs the human to pick one (or several). The reviewer can also reject the whole list (“none of these”), telling the agent to refine its search. For approve/decline of a single payload, or free-form field input, see [Choosing a tool](/docs/tools/#choosing-a-tool). ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | ---------------------------------------------------------------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `message` | string | yes | Human-readable question shown to the reviewer. | | `options` | array | yes | 1–500 candidate objects — see [Options](#options) below. | | `minSelections` / `maxSelections` | number | no | Default `1` / `1` (single choice). `maxSelections` is clamped down to the number of options. Widen the range (e.g. `maxSelections: 3`) to turn on multi-select (checkboxes instead of radio buttons). | | `rowTemplate` / `headingTemplate` / `footerTemplate` / `hoverTemplate` | string | no | [Templates](/docs/templates/) that control how the option table renders. Max 32 KB each. See [Row and column templates](#row-and-column-templates). | | `css` | string | no | Stock CSS injected into the sandboxed document’s `<head>`, so your templates can use classes, `@media` queries, and `:hover` rules. (`hoverTemplate`’s reveal-on-hover is built in and works without it.) **Tailwind is not available here** — only plain CSS you supply yourself. | | `labels` | object | no | `{ submit?, decline? }`, each 1–40 characters; renames the action buttons: `submit` is the submit button (default **Submit**), `decline` the decline button (default **Decline**). Labels only rename — button placement and styling stay fixed. | | `expiresInSeconds` | number | no | Default `3600` (1 hour), clamped `60`–`604800` (1 minute to 7 days) — how long the request stays decidable. | ```json { "message": "Which Paris are you referring to?", "options": [ { "id": "paris-fr", "label": "Paris, FR" }, { "id": "paris-on", "label": "Paris, ON" }, { "id": "paris-tx", "label": "Paris, TX" } ] } ``` ### Options [Section titled “Options”](#options) Each entry in `options` is an object with: * `id` *(string, required)* — must be unique and non-empty within the request. This is the only value that ever comes back. * `label` *(string, optional)* — used by the zero-config fallback rendering (see below). * any other fields you like — arbitrary extra data available to your templates as `{{ option.<field> }}` (e.g. `domain`, `city`, `updatedAt`). ## Row and column templates [Section titled “Row and column templates”](#row-and-column-templates) Without any templates, `elicit_selection` renders a minimal two-column table: a selector cell plus one cell showing `option.label` (falling back to `option.id` if there’s no label). That zero-config path is enough for a simple pick-list. For anything richer — an extra column, styling, a heading row — supply your own templates. See [Templates](/docs/templates/) for the shared engine rules — JavaScript-style truthiness, escaping, and limits. The framework always injects the selector cell itself (the radio button or checkbox); your templates supply everything else: * `rowTemplate` — the `<td>` cells for one option row. Rendered once per option with `{ option }` in context (so `{{ option.label }}`, `{{ option.domain }}`, etc.). * `headingTemplate` — the `<th>` cells for the table header. Rendered once, with **no** option context (there’s no single option to bind to a header). * `footerTemplate` — a `<tfoot>` row, e.g. for a count or a note. Also rendered with no option context. * `hoverTemplate` — extra detail shown on hover over a row. The reveal-on-hover behavior is built into the base stylesheet the framework always injects, so it works with zero caller `css`. Rendered per option with `{ option }` in context, same as `rowTemplate`. Reuse an SVG icon across rows `rowTemplate` renders once per option, so an inline SVG there is repeated in every row. Define it once in `headingTemplate` as a `<symbol>` (inside a hidden `<svg>`), then reference it from each row with `<use>` — the heading and rows render into the same page, so the reference resolves: ```liquid <!-- headingTemplate --> <th>Company<svg width="0" height="0" style="position:absolute" aria-hidden="true"> <symbol id="icon-check" viewBox="0 0 24 24"><path d="M20 6 9 17l-5-5" fill="none" stroke="currentColor" stroke-width="2"/></symbol> </svg></th> <!-- rowTemplate --> <td>{% if option.verified %}<svg width="16" height="16"><use href="#icon-check"/></svg>{% endif %} {{ option.name }}</td> ``` Without a header row, `footerTemplate` works the same way. ### Example 1: zero-config (`id` + `label`) [Section titled “Example 1: zero-config (id + label)”](#example-1-zero-config-id--label) ```json { "message": "Which environment?", "options": [ { "id": "staging", "label": "Staging" }, { "id": "prod", "label": "Production" } ] } ``` What the reviewer sees Which environment? No templates needed — renders a simple radio-button list of labels. ### Example 2: template table (the “which Paris?” case) [Section titled “Example 2: template table (the “which Paris?” case)”](#example-2-template-table-the-which-paris-case) ```json { "message": "Which Paris are you referring to?", "options": [ { "id": "paris-fr", "name": "Paris", "region": "Île-de-France", "country": "France" }, { "id": "paris-on", "name": "Paris", "region": "Ontario", "country": "Canada" }, { "id": "paris-tx", "name": "Paris", "region": "Texas", "country": "United States" } ], "headingTemplate": "<th>City</th><th>Region</th><th>Country</th>", "rowTemplate": "<td>{{ option.name }}</td><td class=\"muted\">{{ option.region }}</td><td class=\"muted\">{{ option.country }}</td>", "css": "td.muted{color:#666}tr:hover{background:rgba(0,0,0,.05)}" } ``` rowTemplate — expanded for readability ```liquid <td>{{ option.name }}</td> <td class="muted">{{ option.region }}</td> <td class="muted">{{ option.country }}</td> ``` What the reviewer sees Which Paris are you referring to? Every candidate has the *same name* — which is exactly when a bare label stops working. The region and country columns give the reviewer something to tell the rows apart at a glance. ### Example 3: multi-select (`maxSelections: 3`) [Section titled “Example 3: multi-select (maxSelections: 3)”](#example-3-multi-select-maxselections-3) ```json { "message": "Pick up to 3 launch candidates to promote", "options": [ { "id": "v1", "label": "v1.2.0" }, { "id": "v2", "label": "v1.3.0-rc1" }, { "id": "v3", "label": "v1.3.0-rc2" }, { "id": "v4", "label": "v1.4.0-beta" } ], "minSelections": 1, "maxSelections": 3 } ``` What the reviewer sees Pick up to 3 launch candidates to promote Because `maxSelections` (3) is greater than `minSelections` (1), the review page renders checkboxes instead of radio buttons and accepts 1–3 selections. ## Safety model [Section titled “Safety model”](#safety-model) The option table is attacker-adjacent input — a caller can put almost anything into `options`, `rowTemplate`, `css`, etc. The review page is designed so none of that can run script, submit anything but the framework’s own controls, or exfiltrate data: * The table is rendered server-side and displayed inside a **sandboxed, null-origin iframe** with `sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox"` — **no scripts allowed**, not even `allow-scripts`. Anything a template renders (including any stray `<script>` tag) is inert markup; it cannot run. The two popup tokens exist only so a row’s `target="_blank"` link can open a normal tab (see [Links and images](/docs/templates/#links-and-images)); they grant the frame no scripting and no same-origin access. * The actual selection is a **native `<input type="radio">` / `<input type="checkbox">` control that the framework injects**. Form controls in a template’s output (`<input>`, `<select>`, `<textarea>`, `<button>`, `<output>`, `<datalist>`, and `<form>` tags) are removed, so only the framework’s control for an option submits that option’s `id`. A template still decides how each row looks, `css` included, so what the reviewer sees is only as accurate as the template. * The submit is authorized by a **signed, time-limited token** minted for that request (not cookies or ambient session state), so the sandboxed (null-origin) form can still submit a valid decision despite having no access to the parent page’s session. A submission can only take effect once because the underlying request resolves a single time, not because the token itself is stateful or single-use. * The server **re-validates every submitted id against the request’s own option set** and **enforces `minSelections`/`maxSelections`** before recording a decision; anything out of range or referencing an unknown id is rejected, and the reviewer sees the table again with a fresh token. * Interpolated `{{ option.* }}` values are **HTML-escaped**, so option data can’t break the layout or inject markup — your template’s own tags render as-is, the data does not. ## Output [Section titled “Output”](#output) ```json { "elicitationId": "…", "status": "pending", "reviewUrl": "https://…/review?elicitationId=…", "expiresAt": "2026-07-30T12:00:00.000Z", "elicitationDelivered": true } ``` * `elicitationDelivered` is `true` only when the host advertised the `elicitation: { url: {} }` capability **on a legacy (pre-`2026-07-28`) connection** — that revision removed server-initiated push, so it is always `false` there. The prompt is **non-blocking** either way; `reviewUrl` is always returned so any host can reach the review page. ## Result [Section titled “Result”](#result) Once the reviewer decides, [`elicit_result`](/docs/tools/elicit_result/) returns the outcome. `formSubmission` is what the review form submitted — the chosen option `id`s, as `selectedIds`: * Submitted ```json { "status": "consumed", "decision": "submitted", "context": null, "formSubmission": { "selectedIds": ["paris-fr"] } } ``` * Declined ```json { "status": "consumed", "decision": "declined", "context": null, "formSubmission": null } ``` `selectedIds` is always an array — one element for a single-select — and every id is validated against your options and the `minSelections`/`maxSelections` bounds before the request resolves. ## Validate the full loop [Section titled “Validate the full loop”](#validate-the-full-loop) A bare “run `elicit_selection` with …” validates **creation and delivery only** — the tool is async, so the agent has no reason to wait for or fetch your choice unless you ask. To exercise the whole round trip (creation, url-mode delivery, the review page, retrieval), give your agent the full instruction: > Run elicit_selection with message “Which Paris are you referring to?” and options paris-fr (Paris, FR), paris-on (Paris, ON), paris-tx (Paris, TX). Then call elicit_await with the returned elicitationId until it reports a decided status — a `pending` return just means the polling window elapsed, so call it again — and finally fetch my choice with elicit_result and tell me which option I picked. What you should observe, in order: on a host with url-mode elicitation a native “Action required”-style prompt offering to open the review URL (on other hosts the agent surfaces `reviewUrl` as a link); the hosted page records your choice; the agent reports the option you picked. The completion notification back to the host is **best-effort by design** — url-mode is async and the host often has no live stream open when the human decides — so `elicit_await` / `elicit_result` are the authoritative path. An agent that appears to “just wait” after delivery isn’t broken; it wasn’t asked to check. ## Related [Section titled “Related”](#related) * [`elicit_await`](/docs/tools/elicit_await/) / [`elicit_status`](/docs/tools/elicit_status/) — wait for the decision * [`elicit_result`](/docs/tools/elicit_result/) — fetch the chosen option ids * [Selection Flow](/docs/pro/selection-flow/) — the full lifecycle * [Templates](/docs/templates/) — the shared template engine rules # elicit_status > Non-blocking status read for an elicitation request — and the reference for what each status means. A non-blocking status read for any Pro elicitation request — approval, selection, or proposal — the polling alternative to [`elicit_await`](/docs/tools/elicit_await/)’s long-poll. ## When to use [Section titled “When to use”](#when-to-use) You want the current status *now*, without waiting — a quick check between other work, or a host whose tool-call budget can’t afford a long-poll. If you have nothing else to do until the decision lands, prefer [`elicit_await`](/docs/tools/elicit_await/) over calling this in a loop. ## Input [Section titled “Input”](#input) | Parameter | Type | Required | Description | | --------------- | ------ | -------- | --------------------------------------------- | | `elicitationId` | string | yes | The id returned when the request was created. | ```json { "elicitationId": "…" } ``` ## Output [Section titled “Output”](#output) ```json { "status": "pending" } ``` * Returns immediately with the current status; never waits. * Read-only and repeatable — it never consumes the result. ## The statuses [Section titled “The statuses”](#the-statuses) | Status | Terminal? | Meaning | | ----------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pending` | no | Created and still decidable: no decision yet, and the TTL (`expiresInSeconds`) has not elapsed. The only status [`elicit_await`](/docs/tools/elicit_await/) waits through. | | `submitted` | no — advances to `consumed` | The reviewer took the **submit** action — approved the payload as-is (JSON mode), submitted valid form values, chose from the option list, or submitted proposal changes. The decision is final; the outcome is ready for [`elicit_result`](/docs/tools/elicit_result/). | | `declined` | no — advances to `consumed` | The reviewer took the **decline** action — chose not to proceed with the payload, the option list (“none of these”), or the proposal. Equally final, and equally *fetchable*: [`elicit_result`](/docs/tools/elicit_result/) reports a decline as a legitimate outcome, so the agent can react to it. | | `canceled` | **yes** | The **requester withdrew the request** via [`elicit_cancel`](/docs/tools/elicit_cancel/) before anyone decided — the plan changed, the question no longer needed answering. The review page shows “withdrawn by the requester” and `elicit_result` errors (there is no reviewer outcome to fetch). | | `consumed` | **yes** | [`elicit_result`](/docs/tools/elicit_result/) has fetched the outcome at least once. Re-reads stay legal — `elicit_result` is an idempotent acknowledge-and-read, and each fetch is recorded in the audit trail. The underlying decision is unchanged (the result still carries `decision: "submitted"` or `"declined"`). | | `expired` | **yes** | The TTL elapsed with no decision. The review page no longer accepts one, and `elicit_result` errors. Computed from the deadline, never stored — and one-directional: a decision made in time is permanent, so a decided request never flips to `expired`. | ![State diagram: a pending request becomes submitted, declined, canceled, or expired; submitted and declined become consumed on the first elicit_result fetch. Canceled, expired, and consumed are terminal.](/d2/docs/docs/tools/elicit_status-0.svg) `pending` resolves to exactly one of the four outcomes — a cancel racing a reviewer decision is arbitrated by the same constraint that prevents double decisions, so exactly one wins. Double-bordered states are **terminal**: nothing ever transitions out of `canceled`, `consumed`, or `expired`. **Statuses name the decision, not the button.** Renaming the action buttons via `labels` (e.g. `submit: "Pick this venue"`) changes what the reviewer sees, never what is recorded: the choice is always `submitted` or `declined`, so agents and audit consumers work against one stable vocabulary across every flow. (MCP alignment note: `declined` deliberately matches the MCP elicitation action for an explicit “no”; a dismissed-without-deciding request is what `expired` captures; and `canceled` is reserved for the *requester’s* own withdrawal — three different endings, three different words.) ## Related [Section titled “Related”](#related) * [`elicit_await`](/docs/tools/elicit_await/) — block until the decision lands * [`elicit_result`](/docs/tools/elicit_result/) — fetch the outcome once decided # Troubleshooting > Fixes for Elicitly connection problems — including ChatGPT/Codex MCP connectors that stop working after a failed OAuth token refresh ("tool isn't available in this session", invalid_refresh_token). Fixes for common problems connecting to and using Elicitly. If your issue isn’t here, [contact us](/contact-us/). ## ChatGPT / Codex: a working connector stops responding (“tool isn’t available in this session”) [Section titled “ChatGPT / Codex: a working connector stops responding (“tool isn’t available in this session”)”](#chatgpt--codex-a-working-connector-stops-responding-tool-isnt-available-in-this-session) **Symptom.** A ChatGPT Desktop / Codex MCP connector that worked before suddenly can’t run its tools. The assistant says something like: > `elicit_ping` isn’t available in this session, so I couldn’t run it. The tools quietly vanish from the session, **no Authenticate button appears**, and none of the obvious recoveries help — toggling the server off and on, Refresh, uninstalling and re-adding it, or fully restarting the app. In logs you may see `invalid_refresh_token`, `invalid_grant`, `OAuth token refresh failed`, or `Auth required`. **Cause — it’s not the server.** This is a known [Codex](https://github.com/openai/codex) client issue, not an Elicitly one. Codex’s embedded MCP client held an OAuth **refresh token**, tried to use it, and the authorization server rejected it as `invalid_refresh_token` — a normal event, because refresh tokens rotate on use and expire. A compliant client re-authenticates automatically at that point. Codex instead keeps the dead credential, retries it forever, and never surfaces re-authentication. The Elicitly server is unaffected — a different client (for example Claude Desktop) authenticates the same endpoint normally at the same moment. **Fix.** Clear the dead credential from the command line — the in-app uninstall does **not** do this, which is why reinstalling never helped: ```sh codex mcp logout <server-name> # e.g. your Elicitly Pro connector's name ``` Then **restart** ChatGPT / Codex. The **Authenticate** button reappears — click it (or run `codex mcp login <server-name>`) to re-authorize in the browser. `codex mcp list` shows each server’s current auth state. **Known upstream issues** — 👍 these to help OpenAI prioritize the fix: * [openai/codex#39054](https://github.com/openai/codex/issues/39054) — a rejected refresh token stays “usable”, so Codex retries it forever and never surfaces re-authentication * [openai/codex#38198](https://github.com/openai/codex/issues/38198) — Codex Desktop: connector permanently disabled with no re-authenticate affordance after a failed refresh * [openai/codex#29630](https://github.com/openai/codex/issues/29630) — Codex doesn’t re-register (DCR) on `invalid_client` / expired refresh token * [openai/codex#14144](https://github.com/openai/codex/issues/14144) / [#32590](https://github.com/openai/codex/issues/32590) — after a successful re-login, the running session keeps using stale credentials until the app is restarted **Not affected.** The [Free Edition](/docs/free/install/) is a local stdio server (`npx -y elicitly`) with no OAuth, so this can’t happen there. Claude Desktop also recovers from a failed refresh cleanly — see the [Elicitation Support Matrix](/docs/elicitation/support-matrix/), which tracks elicitation *capability* (where ChatGPT/Codex leads) separately from connection *reliability* (where it currently lags).