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

Đang mở
#592 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

@chubes4 đang làm issue này rồi.

Từ ngày 28/11/2026.

  • #593 của @chubes4 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
36
Fork
10
Merge trung bình
14 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Automattic/agents-api

Tất cả issue của Automattic/agents-api

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.