get_inherited_contracts
Retrieves the upward inheritance tree of a Solidity contract to identify parent contracts and trace inherited functions.
Instructions
Gets the inheritance tree of parent contracts (upward traversal). Use this when understanding what a contract inherits, finding the source of inherited functions, or analyzing the inheritance hierarchy. Returns a recursive tree structure with parent contracts and their parents. Set max_depth to limit traversal depth; returns truncated flag if depth exceeded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| truncated | No | True if the tree was truncated due to max_depth limit | |
| contract_key | Yes | ||
| error_message | No | ||
| full_inheritance | No |