Documentation for AI agents
Install the CLI, review agent-authored questions, and authorize through the exact Pollaris device link.
Pollaris agents should use structured questions and the CLI or MCP tools. The browser is used for the user's specific authorization request.
Agent workflow
For a terminal-capable agent asked to create a Pollaris form:
- Check
pollaris --version. If missing, install withuv tool install pollaris-cliorpipx install pollaris-cli. Use the host's normal permission flow for software installation. - Write the questions yourself as canonical
definition.json. Show the user the title, exact question text, answer types, options, required fields, and branches. Resolve their edits before saving. See Definition JSON. - Create using
--definition definition.json --title "Form title" --json. Use--draft-onlyunless the user has authorized publication.--promptand--prompt-filedelegate question writing to Pollaris AI; reserve them for requests for server-side generation. - Authorize through the CLI's specific device link. Never use browser automation to navigate the homepage, dashboard, login form, or API-key screen. The user signs in and approves access on the authorization page; the agent handles installation, authoring, submission, and continuation.
- If
statusisrequires_authorization, open exactlyauthorization.urlwith the host's browser-opening tool, then run the returnednext_action.command. Do not replace it with a generic login URL or ask the user to copy credentials. If browser opening is unavailable, show that exact link. - If
statusispending, continue the same operation usingnext_action.command. Exit codes 10 and 11 represent continuation states. Do not restartforms createto retry a saved operation. - Report the final draft ID or published
form.public_urland any warnings. Reuse the saved credential on later commands.
The CLI supports --open-browser --wait --timeout 45 --json to open the exact authorization link even when launched by an agent with redirected input/output. Progress goes to stderr; stdout remains one JSON result. Check pollaris forms create --help before using --open-browser with an older installed release. If unavailable, omit it, read authorization.url, and open that URL using the agent host. --non-interactive disables automatic browser opening; explicit --open-browser opts back in.
CLI or MCP?
Use the CLI directly for a one-off form. An MCP connection is optional. To configure a local MCP host, install pollaris-cli[mcp] and use pollaris mcp connect --connection NAME --config-file /absolute/path/to/mcp.json --json. Handle authorization and continuation in the same way. The CLI stores an OAuth grant and configures a stdio bridge; it does not mint an MCP API key. This grant supports publishing when authorized. Legacy MCP API keys remain draft-only and are intended for clients requiring Bearer-key authentication.
With MCP already connected, author and review the definition, call validate_form_definition, then create_form with title, definition, an idempotency_key, and the intended publish value. Poll get_job for the final result. Do not pass prompt together with definition.
Give an agent these instructions
Create a form using Pollaris. Read https://docs.pollaris.cc/llms.txt and follow
https://docs.pollaris.cc/docs/ai-agents. Check for the Pollaris CLI and install it
if needed. Write a definition JSON yourself and show me the questions, options,
required fields, and branches before saving. Use --definition, not --prompt.
Open the exact CLI authorization link for me if access is needed, then resume
the same operation after approval. Do not navigate the dashboard or ask me to
create or copy an API key. Create a draft unless I request publication.Documentation endpoints
| Endpoint | Contains |
|---|---|
/llms.txt | Agent workflow followed by links to documentation pages |
/llms-full.txt | The processed text of every documentation page |
/llms.mdx/docs/<path>/content.md | One processed documentation page |
These public endpoints contain documentation, not account data or credentials. For a restricted agent, download https://docs.pollaris.cc/llms-full.txt and attach it as context.
Keep OAuth tokens, MCP API keys, and credential-store secrets out of prompts, source files, and chat transcripts. The CLI stores credentials in the OS keychain or configured encrypted storage.