{"version":"2.1.326","anchor":"sessionmessages-gains-lastafter-paging","canonical_anchor":"sessionmessages-gains-lastafter-paging","heading":"Plugins can choose which conversation messages to read","tier":"use","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/sessionmessages-gains-lastafter-paging","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugins can choose which conversation messages to read\n\nPlugins reading a session's messages can now use last and after to choose which part of the conversation they get\n\n**What**\n\nPlugins, add-ons that extend Claude Code, can read the messages in the current session. That read used to return a fixed set of messages. It now accepts two options:\n\n- `last`: how many of the most recent messages to return.\n\n- `after`: read on from a given message.\n\nIf the message given to `after` does not exist in the conversation, the read is refused with a message saying so.\n\n**Why**\n\nPlugin authors can page through a long conversation instead of being limited to one fixed set of messages.\n\n- Area: Plugins\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}