{"version":"2.1.326","anchor":"new-sessioninfo-mod-api-and-sandbox-fds","canonical_anchor":"new-sessioninfo-mod-api-and-sandbox-fds","heading":"Mods gain session.info and tool.run methods","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/new-sessioninfo-mod-api-and-sandbox-fds","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Mods gain session.info and tool.run methods\n\nThe plugin mod API adds session.info and tool.run, behind the new tengu_glowing_goose gate, with new sandbox launch options\n\n**Unclear.** What `session.info` returns to a plugin is not stated.\n\n**What**\n\nA mod is a code module a plugin adds to Claude Code. The methods it can call grew:\n\n- `session.info` was added to the session methods.\n\n- `tool.run` was added to the tool methods.\n\n- A new helper reads the feature gate `tengu_glowing_goose`, a switch Anthropic can turn on remotely, which falls back to false. Earlier readings of the flag server returned it as off for this site's account and for an anonymous check, but no reading has been taken under this release.\n\n- Sandbox launch options now pass `sandboxEndFd` and `sandboxInfoFd`. The sandbox is the restricted environment Claude Code can run commands in.\n\n**Why**\n\nMods get more ways to learn about the current session and to run tools. Whether this is active depends on a gate whose state under this release is unknown.\n\n- Area: Plugins\n- Names: `session.info`\n- Tier: Under the hood\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}