Improve a skill
Fix a field, add fields, or re-learn how a skill opens each result. It goes live only if a check run shows it is better.
mode: fix (default), add_fields, relearn_details, relearn_steps, or rebuild (owner only, for a skill that returns wrong values). feedback is required for the first two. On a skill built on the site’s open API, each mode works on the API instead of a browser: see Skills built on an open API. The call answers at once; read Get an improvement until status is done or failed.
When to use each mode, how to read a run’s diagnosis, and what happens step by step are in Improve a skill.
MCP tool: improve_skill.Authorizations
Headers
Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.
1 - 255Body
What to change, in plain English, the way you would coach a person doing the task.
fix: fill fields the skill misses, from a hint about where the data is (the default). add_fields: capture NEW fields described in plain English. relearn_details: rebuild how the skill clicks into each result (its per-row detail steps) — for a site that changed or detail fields that come back empty. relearn_steps: re-record how the skill gets to its results from its task (a step no longer works, a run returns no rows) — the AI re-recorder redoes the navigation, the old plan as a guide. On a skill built on the site's open API there is no browser: fix and add_fields map the fields again on its API, relearn_steps and relearn_details look for the site's API again. rebuild (the owner only): build every output field again from the site itself — each one locked to where its value is, proven on 2+ inputs, or shown to be not on this site — for a skill that returns wrong values (two prices in one, a copy of another field, one label on every row). A new version only when every field is proven; not charged.
fix, add_fields, relearn_details, relearn_steps, rebuild fix: what the skill gets wrong and where the data really is, e.g. 'The phone is on the details page — click the place name, the panel opens, the number is next to the phone icon.' add_fields: the new fields, e.g. 'also capture the star rating and the review count'. relearn_details: an optional note, e.g. 'the details now open in a side panel'. relearn_steps: an optional note on how to reach the results, e.g. 'the search box moved into a menu'. Required (3+ characters) for fix, and for add_fields unless fields names them.
2000fix: the output fields the hint is about (e.g. ["phone"]); omit to use the fields the last run came back without, or the ones the hint names. add_fields: the new fields' names, when you know them. relearn_details: only re-learn these detail fields. relearn_steps: the fields the re-recorded steps must still reach (default: all).
Response
Improvement started (or the existing one, for a repeated Idempotency-Key).
Where an improvement is: queued → working → validating → done | failed.
done with improved: true means the new recipe version is live; done with
improved: false means the attempt was kept as a candidate version (not live) and
outcome says why. failed means the engine could not run (error). result
says the same in one word.
running | improved (new version live) | kept_old (not better — the old version stays, the attempt is candidate_version) | no_change (nothing to learn or nothing changed) | not_tested (nothing was proven — a check run was blocked or did not run, or there was nothing proven to compare with yet (details.check_blocked says a wall): the repair is kept as candidate_version and the live recipe is unchanged) | failed (could not run) | applied (imported: applied without a check run)
running, improved, kept_old, no_change, not_tested, failed, applied 
