Get comprehensive function information - source code, callers, and callees in one efficient call. Use instead of reading entire code files.
Get everything you need to understand a function in one call:
This is more token-efficient than reading entire files or making multiple grep calls.
~/.chippery/bin/chippery-indexer func-full "$ARGUMENTS" --cache-dir .chippery/index
The function name format depends on the language:
| Language | Format | Example |
|---|---|---|
| TypeScript/JavaScript | functionName | handleRequest |
| PHP class methods |
ClassName.methodName |
Product.getNextScanDate |
| Python methods | ClassName.methodName | User.authenticate |
| Go methods | TypeName.methodName | Server.handleRequest |
| Java/Kotlin methods | ClassName.methodName | UserService.findById |
| Standalone functions | functionName | processOrder |
Key rule: For class/struct methods, use ClassName.methodName. For standalone functions, just use the function name.
# TypeScript/JavaScript standalone function
/chippery-func handleRequest
# PHP class method
/chippery-func "Product.getNextScanDate"
# Python class method
/chippery-func "User.authenticate"
# With path filter (if multiple matches)
/chippery-func "authenticate --path src/auth"
# Laravel model scope
/chippery-func "Product.scopeForUser"
You can pass additional flags:
--path <filter> - Narrow results to files matching path--caller-limit N - Limit number of callers returned (default: 10)--callee-limit N - Limit number of callees returned (default: 10)--depth N - Include transitive call chains (1-3)Returns JSON with:
location - File and line numbersource - Full function source codecallers - Functions that call this onecallees - Functions this one callsIf you get "Function not found":
ClassName.methodName for methods)--path to narrow to a specific directory/chippery-index to rebuild the indexIf you get "index not available" errors, run /chippery-index first to build the code index.