ability-search: expose full input schemas (optional fields) for selected abilities
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
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 newdetail: "full"input, return each matched ability's fullinput_schema(andoutput_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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/agents-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/agents-api#564 ·
-
Difficulty 5/5 Over a week Newbie friendliness 6/100
Automattic/agents-api#590 · 3 comments ·
-
Difficulty 4/5 1-2 days Newbie friendliness 48/100
Automattic/agents-api#587 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Automattic/agents-api#584 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Automattic/agents-api#552 ·
All issues in Automattic/agents-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Codeinwp/optimole-wp#1259 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Sylius/SyliusResourceBundle#1179 ·
-
repo:ckeditor
Difficulty 1/5 Under an hour Newbie friendliness 78/100
craftcms/ckeditor#682 · 1 comment ·
Maintainers usually reply within 1 day