Codebase Function Read
codebase_function_readExtract a single PHP function and its docblock from a module to review one hook or method without reading entire files. Returns the file path, line, and code.
Instructions
Extract a single PHP function (with its docblock) from a module.
Returns the file path, the line of the function and its code — enough to review one hook or method without reading whole files. Searches all PHP-ish files in the module, including class methods.
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": {
"module": "<module>",
"function_name": "<function_name>"
},
"name": "codebase_function_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | Yes | ||
| function_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||