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

オープン
#592 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@chubes4 がすでに取り組んでいます。

2026年11月28日 から。

  • #593 @chubes4 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
36
フォーク
10
平均マージ
14分
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/agents-api のほかの issue

Automattic/agents-api の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。