Search the documentation
18 pages for --json.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…": "bash", "input": { "command": "cat package.json && npm audit --json" } } ] } ``` Suppose this assistant turn (thinking plus the tool call) totals 5,000 generated tokens. The countdown…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ --json @- <<EOF { "agent": "$agent_id", "environment_id": "$environment_id", "title": "Financial analysis on Costco"…
files
Claude Developer Platform · in the page
managed-agents/files
…}' | curl --fail-with-body -sS "${auth[@]}" "${base_url}/sessions" --json @- ) session_id=$(jq -er '.id' <<<"${session}") ``` ```bash CLI SESSION_ID=$(ant beta:sessions create \ --ag…
migration
Claude Developer Platform · in the page
managed-agents/migration
…06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ --json '{ "name": "Task Runner", "model": "claude-opus-5", "tools": [{"type": "agent_toolset_20260401"}]…
skills
Claude Developer Platform · in the page
managed-agents/skills
…023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ --json @- <<'EOF' { "name": "Financial Analyst", "model": "claude-opus-5", "system": "You are a financial analysis a…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…after `agents`: if you place either before `agents`, [`claude agents --json`](#manage-sessions-from-the-shell) fails with an `unknown option` error. The following example opens agent view with a set…
Claude Code changelog
Claude Code CLI · in the page
changelog
…of waiting for the next turn * Changed agent view / `claude agents --json`: sessions waiting on a sandbox, MCP-input, or managed-settings prompt now show as "Needs input" instead of "Working" * U…
CLI reference
Claude Code CLI · in the page
cli-reference
…--cwd <path>` to show only sessions started under that directory, or `--json` to print active sessions as a JSON array for scripting (`--json --all` also includes completed background sessions). Pass…
Error reference
Claude Code CLI · in the page
errors
…| | `Error: --json-schema is not a valid JSON Schema`…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…put conforming to a specific schema, use `--output-format json` with `--json-schema` and a [JSON Schema](https://json-schema.org/) definition. The response includes metadata about the request (session…
Constrain plugin dependency versions
Claude Code CLI · in the page
plugin-dependencies
…To check for these errors programmatically, run `claude plugin list --json`. Plugins with problems include an `errors` field listing them. Plugins that loaded cleanly omit the field. ## See also *…
Create and distribute a plugin marketplace
Claude Code CLI · in the page
plugin-marketplaces
…ns:** | Option | Description | | :------- | :------------- | | `--json` | Output as JSON | With `--json`, each entry includes `name`, `source`, an `installLocation` field with the local cache p…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…------------------------------------------------------ | :------ | | `--json` | Output as JSON | | | `--available` | Include available plug…
Manage sessions
Claude Code CLI · in the page
sessions
…essions, such as [agent view](/docs/en/agent-view) and `claude agents --json` output. The default isn't a resume handle. If you pass it to `claude --resume` or `/resume`, Claude Code doesn't find the…
Find bugs with ultrareview
Claude Code CLI · in the page
ultrareview
…---------------------------------------------------------------- | | `--json` | Print the raw `bugs.json` payload instead of the formatted findings…
Week 18 · April 27 – May 1, 2026
Claude Code CLI · in the page
whats-new/2026-w18
…on-interactively from CI or scripts: prints findings to stdout (<code>--json</code> for raw output) and exits 0 on completion or 1 on failure</div> <div><code>--dangerously-skip-permissions</code>…
Week 21 · May 18–22, 2026
Claude Code CLI · in the page
whats-new/2026-w21
…agents</code> stay alive when idle</div> <div><code>claude agents --json</code> lists live sessions as JSON for scripting, such as status bars and session pickers</div> <div>The PowerShell too…
Week 24 · June 8–12, 2026
Claude Code CLI · in the page
whats-new/2026-w24
…with the <code>language</code> setting</div> <div>`claude agents --json` adds `--all` to include completed sessions plus new <code>id</code> and <code>state</code> fields, and no longer omits blo…