8 pages for prompt.submit.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…epositories using reftable ref storage * Fixed a prompt that a mod's `prompt.submit` hook rewrote or dropped still being recorded as typed in the OpenTelemetry `user_prompt` event and interaction span…
Manage mods for your organization
Claude Code CLI · in the page
plugins/mods/admin
…el.complete` | Uses the user's plan or API key for model calls | | `$.prompt.submit` | Submits a prompt, and can send it as the user's own words | | `$.session.send` | Sends a message that another ses…
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…laude's attention, it can start a turn by submitting a prompt with `$.prompt.submit({ text })`. Claude reads the text after a sentence that names your mod as the sender. To send it as the user's own w…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…k trims each prompt before it's sent: ```javascript theme={null} on('prompt.submit', async ($, e, next) => { // Pass on a copy of the event with its text changed return next({ ...e, text: e.text.…
Draw in the interface with a mod
Claude Code CLI · in the page
plugins/mods/interface
…itting an `Input` doesn't start a turn unless your callback calls [`$.prompt.submit`](/docs/en/plugins/mods/api#start-a-turn-from-a-background-job). ## Redraw a site A drawing is a snapshot: it show…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…ers: | Event | Fires when | A hook can return | | :- | :- | :- | | [`prompt.submit`](/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | A prompt is submitted | `next({ ...e, text })`, `next({…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…ool: 'Bash', command: 'ls' })` fires `tool.call`. `$.command.run`, `$.prompt.submit`, `$.session.start`, and `$.turn.complete` work the same way, and `$.classic.Stop` and the other `$.classic` methods…
Troubleshoot a mod
Claude Code CLI · in the page
plugins/mods/troubleshoot
…in a fresh copy` The line starts with the mod's name and names a `$.prompt.submit`, `$.command.run`, or `$.agent.spawn` call, as in `first-mod: its session.start ran again in a fresh copy; the $.pro…