Codebase Search
codebase_searchSearch a local Drupal codebase to find modules that provide a capability, ranked by exact name, description, then code matches; filter by custom, contrib, or all.
Instructions
Search the local codebase for modules providing a capability.
Ranks exact machine-name/name matches above description matches, which rank above code-body matches (hooks, services, routes, classes). Use scope 'custom' or 'contrib' to filter by module origin; 'all' includes core.
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": {
"query": "<query>"
},
"name": "codebase_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| scope | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||