Use the mods API changedplugins/mods/api
Upstream edited this page at 28 Nov 2026 18:42 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 28 Nov 2026 19:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
414
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits25to this page, all time
The whole hunk
from line 414, old and new numbered
/
from line 414
414414| `$.fs` | `read(path)`, `write(path, text)`, `exists(path)`, `stat(path)`, and `list(path)` work on files and directories |
415415| `$.process` | `run(['git', 'status'])` starts a command and resolves when it exits. `spawn` streams a long-running command's output. |
416416| `$.http` | `fetch(url, init)` over `http` or `https`. It resolves to `{ status, ok, headers, text }` once the body is read. |
417| `$.store` | A JSON key-value store of your plugin's own, kept between sessions |
417| `$.store` | A JSON key-value store of your plugin's own, kept between local sessions on the same machine. For how long values last, locally and in Anthropic-hosted cloud sessions, see [Keep state](https://code.claude.com/docs/en/plugins/mods/interface.md#keep-state). |
418418| `$.env` | `get` and `set` environment variables. Write the name as a string literal. |
419419| `$.settings` | `read()` resolves to all settings, merged into one object. With `{ source }` or `{ key }`, it resolves to [one source's settings or one key's value](#read-one-source-or-one-key) instead. |
420420| `$.session` | `messages()` returns the transcript as a list of `{ role, text, toolUses }`. Also the working directory, model, and more. [`usage()`](https://code.claude.com/docs/en/plugins/mods/reference#mods-api-methods) returns context window use and plan limits. |
No line in this hunk matches that.