ability-search: expose full input schemas (optional fields) for selected abilities

Open
#592 2 comments 0 reactions 0 assignees View on GitHub

@chubes4 is already working on this.

Since Nov 28, 2026.

  • #593 by @chubes4 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
api

Research direction

Start in src/Tools/register-agent-ability-meta-abilities.php at agents_compact_ability_entry() and trace how the select: query token narrows abilities and shapes the output. Check the ability-search output schema and its existing tests; add coverage for selected abilities including optional input properties and schemas, and for broad searches remaining compact. Done when both cases pass.

Written by the indexing model from the issue text.

Description

Problem

agents/ability-search returns compact entries with only name, summary, and required_fields. No other path in the meta-tools gives an outside agent an ability's full input_schema. Optional fields can't be discovered, so agents guess at them.

Real example (Extra Chill, over MCP): extrachill/create-artist comes back with required_fields: ["name"] only. The agent can't see bio, profile_image_id, local_city, and so on, and it has no types, enums, or descriptions for any field.

Code: src/Tools/register-agent-ability-meta-abilities.php, agents_compact_ability_entry(). The select: query token already narrows results to named abilities, but it still returns the compact shape.

Proposed fix

  • When a search uses select:<name>[,<name>], or sets a new detail: "full" input, return each matched ability's full input_schema (and output_schema) alongside the compact fields. Broad keyword searches stay compact so the payload stays small.
  • Declare the extra fields in the ability-search output schema.
  • Add tests: a selected ability returns its optional properties; a broad search stays compact.

Found while building Extra-Chill/extrachill#1691, where link-page tab and feed abilities need agents to see their optional fields.

AI disclosure: issue drafted and filed by Claude (Pi via Roadie) at Chubes' direction.

Dominant language
PHP
Stars
36
Forks
10
Avg merge
14m
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/agents-api

All issues in Automattic/agents-api

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.