Skip to content

Claude Code UserPromptSubmit hook

POST
/hooks/memberberry
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.

Media typeapplication/json
object
session_id
required
string
prompt
required
string
Examplegenerated
{
"session_id": "example",
"prompt": "example"
}

Hook result (empty when there is nothing to surface)

Media typeapplication/json
One of:
object
Example
{
"hookSpecificOutput": {
"hookEventName": "UserPromptSubmit"
}
}