Skip to content

Release 0.20.0: tool-card labels from arguments, catalog-aware argument lists - #52

Merged
Artui merged 9 commits into
mainfrom
release/0.20.0
Dec 2, 2026
Merged

Artui merged 9 commits into
mainfrom
release/0.20.0

Conversation

@Artui

@Artui Artui commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Release 0.20.0: tool-card labels from arguments, and catalog-aware argument lists

Two cards; the connectors element (CONNECTORS-WC) and the approval form (READ-ARGS-WC-APPROVAL) move to 0.21.0 to keep this release near the 50-file budget (33 files here).

READ-ARGS-WC-TEMPLATE

A tool schema's x-summary-template (X_SUMMARY_TEMPLATE_KEY), or the data-tools-url catalog's summary_template from django-spec-agents 0.31.0, fills the card head and the step-group row from the call's top-level string, number and boolean arguments ("Search orders for {query}"). If any placeholder cannot fill, the static label stays. A filled template outranks every static label, toolSummaries included. Values are set as text. ToolCatalogEntry gains summaryTemplate. No opt-in.

READ-ARGS-WC-CATALOG

The catalog's arguments projection (per property title, format, enum labels as oneOf: [{const, title}], x-hidden) is parsed tolerantly: a malformed projection costs that field, never the entry or its label. A client tool reads the same keys off its own parameters schema, ahead of the catalog. The readable arguments list draws the title as the label, date / date-time through Intl in the browser's locale (a date as its UTC calendar day), enum constants as their labels, and leaves x-hidden properties out; View raw keeps the exact JSON. A catalog without arguments renders exactly as in 0.19.0. ToolCallCardOptions gains display; ArgumentDisplays, ArgumentDisplay, ArgumentChoice and PayloadDisplay are exported types. No opt-in.

Verification

  • Fixtures are recorded from django-spec-agents 0.31.0's build_tool_catalog (scripts/record_summary_template_fixture.py, scripts/record_tool_arguments_fixture.py) and regenerate byte-identical.
  • The tests replayed against main fail on their assertions.
  • Two review rounds. Round 1 found five blocking issues, all fixed with tests that kill their mutants: the demo label, the ToolCallCardOptions docs, a toolSummaries ranking test, a date test blind in UTC (the happy-dom run is now pinned to a negative-offset zone in vitest.config.ts), and a oneOf: {} guard. Round 2 verdict: ready, 36 of 40 mutants killed, the rest equivalent.
  • Gates on the release tip: lint, type-check, format, make test (364 files, 5323 tests, 100% coverage, Chromium included), build, docs strict.

Demo: Tool cards, prompt "Labels from arguments" (filled head, catalog titles, enum label, formatted date, hidden trace_id).

Left for the owner: a call whose arguments are all x-hidden opens onto an empty Arguments list with only View raw. This is pinned by a test on purpose; say whether the region should collapse.

🤖 Generated with Claude Code

Artui and others added 9 commits December 2, 2026 10:46
A tool schema's x-summary-template, or the catalog's summary_template, labels
the card head and the step-group row with its placeholders filled from the
call's top-level scalar arguments. Any placeholder that cannot be filled falls
back to the static label chain unchanged. The fixture is django-spec-agents
0.31.0's own build_tool_catalog output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parseToolCatalog keeps an entry's arguments (title, format, enum labels,
x-hidden), tolerant per property; ToolCatalog.argumentDisplays serves a
client tool's own parameters first, then the catalog; renderReadablePayload
takes them as an optional display. Fixture recorded from
django-spec-agents 0.31.0's build_tool_catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card's arguments region reads its tool's argument displays (a client
tool's own schema, else the catalog's arguments): titles, enum labels,
Intl dates, hidden keys left out; View raw keeps the JSON. Docs,
CHANGELOG and the search-orders demo scenario.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… open

Name the demo prompt without a version, document ToolCallCardOptions.display,
export the argument display types, run the happy-dom suite in a zone behind
UTC so a date drawn in local time fails, and add tests for a filled template
over toolSummaries, a non-date format, non-string titles and templates, an
object oneOf, and markup in catalog and choice titles.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Artui
Artui merged commit 9ecd8d8 into main Dec 2, 2026
7 checks passed
@Artui
Artui deleted the release/0.20.0 branch December 2, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant