prompt_hook
Receives Claude Code UserPromptSubmit prompts and returns a code map as hook JSON, enabling request-aware context without direct tool calls.
Instructions
Hook only, do not call: Claude Code's UserPromptSubmit hook (mcp_tool) sends the prompt and gets the code map of the request as hook JSON.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "prompt_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt. |