surface
Get the exact API of Python modules, classes, or files—real signatures and one-line summaries. Check current code to avoid calling nonexistent APIs before writing.
Instructions
Get the exact API of a Python module, class, or project file: every public name with its real signature and a one-line summary. Reads the installed package or parses the project file, so the answer is always current.
Use this INSTEAD OF reading a file when you need to know how to call something. It is typically 5-10x fewer tokens than the source and contains everything needed to make a correct call. Cheap enough to re-ask at any time rather than holding it in context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Cap the number of members returned. | |
| target | Yes | A dotted module or class ('json', 'datetime.datetime', 'numpy.linalg') or a path to a .py file. | |
| private | No | Include underscore-prefixed names. Use when editing the module itself rather than calling it. | |
| summaries | No | Include one-line docstring summaries. |