The starter verbs every app should have
Theme, navigation, search, modals, toasts, forms, and sessions. A common baseline so your AI agent can immediately operate any site — without DOM hacks or brittle selectors.
The Standard Library is not a complete list of all possible verbs. OpenVerb is designed so developers create their own verb libraries for their own domains. This stdlib gives you the starter verbs that virtually every app needs, so an AI agent can immediately:
7 families, 19 verbs. Your app adds its own verb libraries on top of these for domain-specific actions.
| Family | Verbs | Purpose |
|---|---|---|
| ui.theme | get, set | Theme (light/dark/system) |
| ui.nav | list_pages, go, back | Navigation & route discovery |
| ui.search | query, open_result | On-site search |
| ui.toast | show, dismiss | Notifications & feedback |
| ui.modal | open, close, list | Modal dialogs |
| ui.form | list, fill, submit, reset | Form interaction |
| user.session | get, logout, get_preferences | User session & preferences |
Every verb in @openverb/stdlib, with its inputs and outputs. Fields marked * are required. This table is generated from the package itself, so it always matches what you install.
| Verb | What it does | Inputs | Returns |
|---|---|---|---|
| ui.theme.get | Get the current application theme (light, dark, or system) | none | mode: light | dark | system resolved: light | dark |
| ui.theme.set | Set the application theme (light, dark, or system) | mode*: light | dark | system | success: boolean mode: string previousMode: string |
| ui.nav.list_pages | List all navigable pages/routes in the app. Use this so the AI knows what pages exist and can propose navigation. | none | routes: array |
| ui.nav.go | Navigate to a page. Pass routeId (from list_pages) or path. Client applies navigation when verb succeeds. | routeId: string path: string | success: boolean path: string |
| ui.nav.back | Navigate back in browser history | none | success: boolean |
| ui.search.query | Search the app's content. Returns a list of results the AI can present or act on. | query*: string scope: string limit: number | results: array total: number |
| ui.search.open_result | Open a search result by id. Navigates the user to the result. | resultId*: string | success: boolean url: string |
| ui.toast.show | Show a toast notification to the user. Use for confirmations, warnings, or transient messages. | message*: string variant: info | success | warning | error duration: number | success: boolean toastId: string |
| ui.toast.dismiss | Dismiss a toast notification by id, or dismiss all toasts. | toastId: string | success: boolean |
| ui.modal.open | Open a modal by id. The app registers named modals; the AI triggers them by id. | modalId*: string data: object | success: boolean modalId: string |
| ui.modal.close | Close the currently open modal, or a specific modal by id. | modalId: string | success: boolean |
| ui.modal.list | List all registered modals the AI can open. | none | modals: array |
| ui.form.list | List all registered forms on the current page or view. | none | forms: array |
| ui.form.fill | Fill form fields with values. Does not submit — use ui.form.submit after filling. | formId*: string values*: object | success: boolean filled: array |
| ui.form.submit | Submit a form by id. Returns validation errors if the form is invalid. | formId*: string | success: boolean errors: array |
| ui.form.reset | Reset a form to its default values. | formId*: string | success: boolean |
| user.session.get | Get the current user's session info. Returns auth status, display name, and role. Never exposes tokens or passwords. | none | authenticated: boolean user: object |
| user.session.logout | Log the user out. Requires explicit user confirmation before the AI calls this. | confirmed*: boolean | success: boolean |
| user.session.get_preferences | Get the current user's preferences (language, timezone, notification settings, etc.). | none | preferences: object |
# npm npm install openverb @openverb/stdlib # Python (copy manifests from repo) pip install openverb
The JSON verb definitions live in manifests/. Import them or load from the package:
import { findVerb, getAllVerbs } from "@openverb/stdlib";
// Get a specific verb definition
const uiNavGo = findVerb("ui.nav.go");
// Get all 19 starter verbs
const verbs = getAllVerbs();Use one of the reference implementations or write your own. The stdlib includes:
reference/vanilla/verbs.jsreference/react/useOpenVerb.tsreference/nextjs/verbs.tsWhen your AI receives a verb call, dispatch it to your handler. The client applies the effect (e.g. router.push(path) for navigation).
This is the canonical flow that makes AI navigation feel natural:
ui.nav.list_pagesui.nav.go({ routeId: "accounting" })/accountingThe key: maintain a route registry so the AI knows what pages exist. The AI uses id to navigate — it never guesses URLs.
Source code, manifests, reference implementations, and issue templates
Complete verb definitions with input/output schemas for all 19 verbs
Patterns, anti-patterns, and framework-specific guidance
Install @openverb/stdlib — TypeScript types, manifests, and helpers
The Standard Library is integrated into real apps. Try asking the AI to navigate or change the theme:
Manifests are JSON. Handlers are framework-specific (vanilla, React, Next.js).
The AI uses registries (routes, modals, forms) — no guessing URLs or selectors.
Every verb call has typed input/output. Log, replay, and review.
Verbs are small and independent. Combine them for complex flows.
The Standard Library is the verb catalog layer. It works with the OpenVerb Framework packages:
| Package | Purpose |
|---|---|
| @openverb/stdlib | Standard verb definitions (this package) |
| @openverb/runtime | Execution runtime |
| @openverb/sdk | Client SDK & React hooks |
| openverb | Core framework (npm & PyPI) |