{"name":"prompt.read","slug":"prompt-read","family":"setting","title":"Settings keys","noun":"settings key","description":"New plugin hook API lets plugins read the current text and cursor position in the prompt box","description_source":"entry","described_by":{"version":"2.1.275","anchor":"new-plugin-hook-api-promptread"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.319","builds":0,"mined_builds":159,"first_cited":{"version":"2.1.275","released_at":"2026-09-17 20:20:31","spans":1}},"aliases":[],"entries":[{"version":"2.1.275","anchor":"new-plugin-hook-api-promptread","heading":"New plugin hook API: $.prompt.read","line":"New plugin hook API lets plugins read the current text and cursor position in the prompt box","released_at":"2026-09-17 20:20:31","reason":"found in this entry's text"},{"version":"2.1.275","anchor":"policy-manifest-gains-sessionroot-promptread-uipanes-su","heading":"Policy manifest gains session.root, prompt.read, ui.panes surface entries","line":"Plugin API policy list adds session.root, prompt.read, and ui.panes as permitted actions","released_at":"2026-09-17 20:20:31","reason":"named in this entry, found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"plugins\/mods\/test","title":"Test a mod","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"prompt","slug":"prompt","description":"Auto-mode is stricter: text you asked Claude to review can't grant permission on your behalf."},{"name":"prompt.attachment","slug":"prompt-attachment","description":"New `prompt.attachment` hook lets plugins rewrite or remove text attached to a message"},{"name":"prompt.autocomplete","slug":"prompt-autocomplete","description":"A new `prompt.autocomplete` plugin hook lets plugins add completion rows under the prompt, including for desktop, mobile and VS Code composers"},{"name":"prompt.change","slug":"prompt-change","description":"The `prompt.change` hook runs when a plugin or the landing screen changes the prompt box, and stops itself if plugins keep refilling it"},{"name":"prompt.compose","slug":"prompt-compose","description":"Claude Code can now compare two versions of a changing schema and label the difference, such as text only or new live additions"},{"name":"prompt.context","slug":"prompt-context","description":"A new prompt.context hook event lets plugins add named context blocks to a prompt, capped at 32 blocks and 32000 characters."},{"name":"prompt.edit","slug":"prompt-edit","description":"Plugins can now hook into 'prompt.attachment' to rewrite or drop attachment text before it reaches the model"},{"name":"prompt.fill","slug":"prompt-fill","description":"Plugins can now fill in or suggest text directly in the prompt input box via two new prompt.fill and prompt.suggest actions"},{"name":"prompt.md","slug":"prompt-md","description":"`plugin eval` warns when writing results inside a plugin's own directory could get picked up as plugin components"},{"name":"prompt.paint","slug":"prompt-paint","description":"A new plugin hook, `prompt.paint`, takes text and decorations and returns the text and cursor position to show in the prompt"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/prompt-read","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}