# Completion plugin API
[Plugin development](plugin-development.md) ยท [Plugin API](plugin-development.md#plugin-api)
`api.completion` (`version: 1`) lets plugins show autocomplete in RuneStone editors and in their own text fields, and supply the suggestions.
`api.completion` is optional. Older hosts do not have it, and `transport` can be absent. Make sure that a member exists before you call it.
The types are in `src/lib/completion/contracts.ts`.
| Member | Contract |
| --- | --- |
| `registerInput(element, options)` | Add autocomplete to an `` or `