Elicitly

v0.8.8
ai.elicitly/elicitly Checked 2 hours ago Published 11 hours ago

Human-in-the-loop for AI agents over MCP elicitation: confirm/form dialogs plus a capability doctor

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

elicit_confirm Ask the user to confirm (OK/Cancel)

Ask the user an OK/Cancel confirmation via elicitation (convenience wrapper over elicit_form), modeled on JavaScript's confirm(). Use this for a single yes/no question; use elicit_form to collect arbitrary fields. Returns three-state {confirmed}: true = proceed, false = a human explicitly said no, null = no answer was obtained (reason: "dismissed" | "error") — ask again later.

ParameterTypeDescription
message *stringThe yes/no question shown to the user in the host's elicitation dialog.
labelsobjectRelabel or localize the OK/Cancel buttons. Each label is trimmed, 1-40 characters; unknown keys are rejected. Button placement and styling stay fixed.
timeoutSecondsnumberHow long to wait for the answer, in seconds (default 300, clamped 60-3600).

elicit_doctor Diagnose the host's elicitation support

Check whether the connected MCP host actually supports elicitation (and sampling/roots) before relying on it — advertising a capability is not the same as it working. Use it to decide whether to call elicit_form/elicit_confirm, to explain why a prompt did or didn't appear, or to contribute a host capability fingerprint. Returns a passive report derived from the initialize handshake; set probeElicitation: true to also run one live form round-trip (the user may see a dialog) and classify what really happened. Read-only; safe to call anytime.

ParameterTypeDescription
probeElicitationbooleanAlso fire one live form-elicitation round-trip (the user may see a dialog) and report the outcome under probes.elicitationForm. Default false: passive capability report only, no prompt.

elicit_form Ask the user to fill a form

Trigger a form elicitation with a caller-supplied JSON schema; returns the raw {action, content}. For a plain OK/Cancel question, prefer elicit_confirm. MUST NOT be used to request secrets, credentials, or other sensitive information.

ParameterTypeDescription
message *stringThe instruction shown to the user above the form fields.
requestedSchema *objectJSON Schema for the form, restricted to the MCP elicitation requestedSchema subset: a flat object whose properties are strings, numbers/integers, booleans, or enums — no nested objects, arrays of ob…
timeoutSecondsnumberHow long to wait for the answer, in seconds (default 300, clamped 60-3600) — raise it for forms with several fields.

elicit_display Show the user rendered content

Show information to the user as rendered HTML instead of Markdown: pass a LiquidJS template and a JSON context, and hosts that support MCP Apps render it inline in the conversation. Use it for tables, reports, and summaries the user should scan; it does not collect a decision (use elicit_confirm or elicit_form for that). Values interpolated with {{ context.* }} are HTML-escaped; truthiness is JavaScript-style. Templates may load Tailwind (https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4) and DaisyUI (https://cdn.jsdelivr.net/npm/daisyui@5) with their own <script>/<link> tags; the view follo…

ParameterTypeDescription
template *stringLiquidJS template producing an HTML fragment, rendered against {{ context.* }}. Max 32768 characters.
contextobjectJSON data exposed to the template as `context`. Max 64 KB serialized.
summarystringOne or two sentences describing what is shown; returned as the tool's text result.
titlestringHeading shown above the render.