[BUG] TaskGet does not return metadata field
Resolved 💬 2 comments Opened Feb 16, 2026 by justyn Closed Feb 16, 2026
Description
TaskGet does not include the metadata field in its output, despite metadata being an explicitly defined parameter on both TaskCreate and TaskUpdate. This makes metadata effectively write-only.
Tool description evidence
The tool descriptions provided to Claude define metadata as a first-class field:
- TaskCreate:
metadata— "Arbitrary metadata to attach to the task" - TaskUpdate:
metadata— "Metadata keys to merge into the task. Set a key to null to delete it."
Both schemas set additionalProperties: false, confirming metadata is intentionally designed, not incidental. However, TaskGet's documented output fields are only: subject, description, status, blocks, and blockedBy — no metadata.
Reproduction
- Create a task with metadata via
TaskCreate - Retrieve it with
TaskGet - Metadata is absent from the response, despite being present in the on-disk JSON (
~/.claude/tasks/<id>/*.json)
Expected
TaskGet should return the metadata field.
Environment
- Claude Code v2.1.42, Linux
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗