{"version":"2.1.280","anchor":"sdkplugin-session-scope-gains-savedagentmessages-and-reques","canonical_anchor":"sdkplugin-session-scope-gains-savedagentmessages-and-reques","heading":"SDK\/plugin session scope gains savedAgentMessages and requestMessages callbacks","tier":"internal","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/sdkplugin-session-scope-gains-savedagentmessages-and-reques","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### SDK\/plugin session scope gains savedAgentMessages and requestMessages callbacks\n\nThe SDK's internal session bridge gained savedAgentMessages and requestMessages callbacks\n\n**Unclear.** The finding does not say what consumes these new callbacks or what user-facing behavior they enable.\n\n**What**\n\nThe internal bridge object that Claude Code's SDK and plugins use to talk to a running session (the same object that already exposed things like `canUseTool` and `toast`) now also exposes two new functions: `savedAgentMessages` and `requestMessages`. They are wired up to the session's stored data and its computed list of tools.\n\n**Why**\n\nThis is internal plumbing rather than something most users will interact with directly. It gives SDK integrations and plugins a way to read back saved agent messages and request messages for a session, which they could not do through this bridge before.\n\n- Area: SDK\n- Names: `savedAgentMessages`, `requestMessages`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}