Skip to main content
Module 5: The Fable 5 Era 8 / 8
Advanced S32 Artifacts Tasks Tools Fable 5

The New Tool Belt: Artifacts, Tasks & Typed Outputs

A verified tour of Claude Code's current output and coordination tools, including live MCP-backed artifacts, background task output files, LSP, and when the task tools apply.

July 8, 2026 16 min read

What You’ll Learn

The current Claude Code tool belt goes beyond reading and editing files. It can publish interactive output, coordinate durable tasks, render typed review findings, navigate code through a language server, and keep long-running work visible without blocking the session.

This session covers:

  • Artifacts as private, update-in-place pages on claude.ai
  • The precise boundary between live MCP connector calls and blocked external fetches
  • Where the Task tools apply, and how to read a background task’s output now that TaskOutput is gone
  • AskUserQuestion, ReportFindings, LSP, worktrees, and resumable agents
  • Relevant changes from Weeks 28 and 29 of 2026

Artifacts: Output as a Live Page

An artifact is a single HTML or Markdown page published from Claude Code to a private URL on claude.ai. It can present annotated diffs, dashboards, design comparisons, timelines, or other output that is easier to inspect visually than in terminal prose.

The basic lifecycle is:

session data → .html/.htm/.md file → private artifact URL
                                      │
                                      ├─ update in place
                                      └─ share when appropriate

Later revisions to the same artifact update its URL in place, and each publish becomes a version. A new artifact that Claude publishes in response to a prompt you type goes through without a prompt, but Claude Code asks first in specific cases: in plan mode, when the publish declares runtime capabilities such as connector calls or file downloads, when you’ve already shared the page publicly, when a scheduled task started the turn, or when it can’t read or edit the underlying file without your approval.

A different session can update the artifact when given its URL. Run /artifacts to list the artifacts you own and the ones shared with you, then attach one to the session, open it, copy its link, or delete one you own.

Artifacts require an eligible Pro, Max, Team, or Enterprise plan, a session authenticated with /login rather than an API key or cloud-provider credential, and the Anthropic API as the provider — they are unavailable on Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, and in organizations with CMEK, HIPAA, or Zero Data Retention. They are also off by default in the Agent SDK, the GitHub Action, MCP-server contexts, and in claude -p runs you start yourself.

Static External Fetches vs Live MCP Connectors

An artifact is still one self-contained page with no backend, served under a strict Content Security Policy. The page may load typefaces from Google Fonts and scripts from five public CDN hosts — cdnjs, unpkg, the Tailwind and jQuery CDNs, and selected paths on jsDelivr such as /npm/. The CSP blocks:

  • every external image, and all other external scripts, stylesheets, and fonts;
  • fetch and XHR to anywhere but the page’s own origin and the Google Fonts hosts; and
  • WebSocket connections on the same terms.

So a library comes from one of those CDNs, everything else is inline, and images are embedded as data URIs. The rendered page must stay within the documented 16 MiB limit.

MCP connector calls are the explicit exception. From Claude Code 2.1.209, an artifact can declare claude.ai MCP connectors at publish time and ask claude.ai to call them whenever a viewer opens or refreshes the page. This makes a dashboard show current data or expose connector actions without granting the page general internet access.

The trust boundary is important:

PathPublished artifact behavior
Arbitrary external API / fetch / XHR / WebSocketBlocked by CSP
Scripts from the five allowed CDNs, fonts from Google FontsAllowed
claude.ai MCP connector declared at publish timeAllowed through claude.ai after viewer approval
Local .mcp.json serverCan help while building; cannot be called live by the published page

Every viewer uses their own connector account and approves the first call, so two viewers can see different data, and page controls that invoke connector actions run as whoever clicks them. A connector-backed page can be shared inside your organization or publicly as your plan and settings allow, but connector calls don’t run for a viewer who opens a public link without signing in to claude.ai or from outside your organization — they see the page without its live sections. Ask for a fallback message that names the connector each live section needs.

Build a dashboard artifact of open pull requests that pulls the live list
through my GitHub connector when the page loads. Include a fallback message
for viewers who have not connected GitHub.

Downloads are a second declared capability: the viewer can’t save a file from an ordinary link or script, because the viewer blocks any download the page starts itself, so a CSV or PNG export needs a control Claude builds with the downloads capability.

Sharing has two more surfaces worth knowing. On Team and Enterprise plans you can make someone an editor, who republishes the page from their own session; if an editor publishes while Claude holds an older copy, Claude Code refuses the stale publish and Claude merges onto the newer version. Viewers in your organization can also leave comments, and Claude can read a thread and reply when someone with edit access sends it to Claude or mentions @claude.

Tasks: The Session’s Operational View

The Task tools track multi-step work as a visible queue:

TaskCreate ──► create a task
TaskUpdate ──► change state, details, dependencies, or owner
TaskList   ──► see the operational queue
TaskGet    ──► inspect one task

background task ──► TaskStop
                └─► Read(output file path)

Tasks can be pending, in progress, or completed and can block or depend on other tasks.

Where the Task tools apply

Which of these tools exist depends on the model. They are provided by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5, and earlier models. On newer models — Opus 4.8, Sonnet 5, Fable 5, and everything after them — Claude Code leaves them out, because Claude tracks multi-step work without a written checklist and the definitions cost context. Background sessions and cloud sessions provide them on every model.

To get them anyway, set CLAUDE_CODE_ENABLE_TODO_TOOLS=1 before launching, or name one in --allowedTools or --tools. Wherever the tools are available you get the four Task tools; CLAUDE_CODE_ENABLE_TASKS=0 gives you the older TodoWrite checklist instead. Without them, Claude simply adds nothing to the task list while it works. This default set applies from Claude Code 2.1.268.

TaskOutput is gone

TaskOutput was removed in 2.1.277. Read a background task’s output file path with Read instead. Claude Code includes that path in background-task details and completion messages, so the file is the durable inspection surface, and taskOutputMaxChars and TASK_MAX_OUTPUT_LENGTH no longer have any effect. A disallowedTools entry or deny rule that still names TaskOutput is ignored without a warning, so clean those out of old configs.

Use TaskStop only to stop a running background task, an agent-team teammate, or a named background agent. It does not replace TaskUpdate, which manages task-list state and dependencies.

Structured Interaction and Output

AskUserQuestion

AskUserQuestion presents multiple-choice questions for requirements or ambiguity; you can also answer with your own text. Questions stay open until you answer them, and an optional askUserQuestionTimeout can auto-continue after 60s, 5m, or 10m. That timeout applies only to the question dialog — never to permission prompts or plan approval — and it never starts in a background session, in screen reader mode, or while the session is connected to Remote Control.

ReportFindings

Active code-review instructions can use ReportFindings to return a rendered list with a file, summary, and failure scenario per finding, instead of printing them as text. A finding can also carry an optional category slug such as correctness or test-coverage, shown next to the file location. Structured presentation helps; it does not make an unverified claim true.

LSP

The LSP tool asks a running language server for definitions, references, type errors, and warnings, and after edits diagnostics can surface automatically, reducing reliance on text search alone. It stays inactive until you install a code intelligence plugin for your language, and it stays inactive in cloud sessions, where Claude Code doesn’t start plugin language servers. Builds and tests still remain the final behavioral check.

Isolation, Agents, and Delivery

  • EnterWorktree / ExitWorktree let the main session use an isolated git worktree; a path outside .claude/worktrees/ prompts for your approval first.
  • Subagents run in the background by default; the caller receives their final result as a completion notification in a later turn.
  • SendMessage can resume a completed subagent by ID or name, and also one that Claude stopped with TaskStop once its run has exited. A subagent you stopped yourself, with x in /tasks or an SDK stop request, is not resumed this way.
  • SendUserFile can deliver a generated file to a connected Remote Control client or cloud session.
  • ShareOnboardingGuide uploads ONBOARDING.md from /team-onboarding for eligible claude.ai plans.

These features have different plan, authentication, and provider boundaries. The Tools Reference should be checked before treating any one of them as universally available.

Week 28: Safer Surfaces and Better Diagnostics

Releases 2.1.202–2.1.206 added several relevant upgrades:

  • The Desktop app gained a sandboxed, configurable browser for external sites.
  • /doctor became an actionable setup checkup: it diagnoses installation health, unused skills/MCP/plugins, duplicated or oversized CLAUDE.md content, and slow hooks, then asks before making changes.
  • EnterWorktree now confirms before entering a path outside .claude/worktrees/.
  • Background-task notifications explicitly state that no human input occurred, preventing transcript text from being mistaken for user approval.
  • /code-review finding quality improved on Opus 4.8 across effort levels.

Week 29: Live Artifacts and Long-Running Work

Releases 2.1.207–2.1.212 extended the belt again:

  • Published artifacts gained live MCP connector data and actions, along with public sharing links and editor roles.
  • claude --ax-screen-reader gained a linear, screen-reader-friendly terminal mode.
  • /fork now copies the conversation into a new background session; the former in-session behavior is /subtask.
  • MCP calls lasting more than two minutes move to the background automatically, with a configurable threshold.
  • Web searches and subagent spawns gained default per-session caps of 200, each tunable through documented environment variables.

Build a Shareable Review Artifact

1. Run review workers in the background and read their output files when they finish.
2. Collect ReportFindings records; keep unverified items visibly separate.
3. Build one self-contained HTML page, inlining everything but an allowed CDN library.
4. Add declared MCP connectors only if viewers need fresh data.
5. Publish privately, review it, and choose an allowed sharing audience.
6. Republish later versions to the same artifact URL.

If the page only needs data collected during the session, keep it static — it works for every viewer, signed in or not. If it needs live connector data, accept that each viewer supplies their own connector and provide a clear fallback for those who haven’t connected it.

Key Insight

The tool belt now separates work, evidence, presentation, and delivery. Background tasks and their output files track execution, typed tools structure results, Artifacts present them, and MCP connectors can refresh approved live data. The boundaries matter as much as the features: a live connector is not general network access, a removed tool should not linger in your configs, and a tool that exists on one model may be absent on the next.

Module 5 Conclusion

Module 5 ends with a system that can choose model and effort, script multi-agent work, preserve memory, defer tools, schedule work, and present results beyond the terminal. The durable lesson is not to use every feature at once. Choose the smallest mechanism that preserves evidence, permissions, and a clear path for the user to inspect the result.

Official Sources