Codebase Hooks Find
codebase_hooks_findLocate which local Drupal modules implement a given hook, reporting the file and line for each implementation. Accepts hook names with or without the hook_ prefix.
Instructions
Find which local modules implement a hook, with file and line.
Accepts the hook with or without its 'hook_' prefix (both 'form_alter' and 'hook_form_alter' work). Implementations are reported per module with the file and line of the function.
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": {
"hook_name": "<hook_name>"
},
"name": "codebase_hooks_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hook_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||