{"version":"2.1.337","anchor":"hook-function-api-uiask-style-op-accepts-canread-and-histo","canonical_anchor":"hook-function-api-uiask-style-op-accepts-canread-and-histo","heading":"A hook operation for asking questions now takes a reading flag and a history","tier":"use","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/hook-function-api-uiask-style-op-accepts-canread-and-histo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### A hook operation for asking questions now takes a reading flag and a history\n\nA hook operation that takes a prompt and effort now also accepts canRead, which must be true, and a list of earlier questions and answers\n\n**What**\n\nPlugins can call operations that Claude Code makes available to hooks, which are commands that run automatically around Claude's actions. One operation that takes a prompt and an optional effort level now also accepts:\n\n- `canRead`, which must be true or left out.\n\n- `history`, a list of earlier question and answer pairs, none of them empty.\n\nBefore, it took only the prompt and effort.\n\n**Why**\n\nPlugin authors can pass earlier questions and answers along with a new prompt.\n\n- Area: Hooks\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}