Skip to content

runbooks / command

List contexts

Lists the contexts, or shows one with its runbooks

❯ /runbooks:contexts:list [name] [--json] [--model <model>]

Read-only. It writes nothing and commits nothing. To change a context, use /runbooks:contexts:create, /runbooks:contexts:update or /runbooks:contexts:delete. Contexts and cases: ${RUNBOOKS_PLUGIN_ROOT}/skills/runbooks/references/config.md, "Roles".

Parameters

Read-only: it writes and commits nothing.

Parameter What it does
[name] Show one context instead of the list: its keys, its cases and the runbooks on its keys.
--json Print the rows as JSON, for scripts.
--model <m> Run this invocation on one model: inline (in the main session), haiku, sonnet, opus or fable. Any value but inline runs the command in a sub-agent on that model. Without it, the command takes its row of the models table in the config: by default contexts:list runs inline. On Codex, the values are inline, inherit (a sub-agent on the session's model) or a model ID the session supports, and the table is codex.models, where every row that is not inline defaults to inherit. See models.
/runbooks:contexts:list                 # every context
/runbooks:contexts:list client-access   # one context and its runbooks
/runbooks:contexts:list --json          # as JSON
/runbooks:contexts:list --model sonnet  # in a sonnet sub-agent

View source on GitHub