Claude Code UserPromptSubmit hook
POST
/hooks/memberberry
const url = 'http://127.0.0.1:7677/hooks/memberberry';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"session_id":"example","prompt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:7677/hooks/memberberry \ --header 'Content-Type: application/json' \ --data '{ "session_id": "example", "prompt": "example" }'Returns lightweight hints about notes relevant to the current prompt so Claude Code can decide whether to fetch them via MCP tools. Results are deduplicated per session, short prompts and slash commands are ignored.
Request Body required
Section titled “Request Body required ” Media type application/json
object
session_id
required
string
prompt
required
string
Example generated
{ "session_id": "example", "prompt": "example"}Responses
Section titled “ Responses ”Hook result (empty when there is nothing to surface)
Media type application/json