get_signature
Extract function signatures from code files to document interfaces, verify parameters, or support refactoring tasks in Python, JavaScript, TypeScript, C, and C++.
Instructions
Return the signature of a function (everything before its body) as plain text. Read-only. Works for Python, JS, TS, C, and C++.
Use this when: You need a function's exact signature for documentation, refactoring, or to verify the interface before editing. Don't use this when: You need to see the whole function body -> read the file directly.
Example: target="LRUCache.get"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |