get_derived_contracts
Traverse the inheritance tree to find all contracts derived from a base contract. Use to locate implementations, assess change impact, or discover contract variants.
Instructions
Gets all contracts that inherit from a specific contract (downward traversal). Use this when finding all implementations of a base contract, understanding the impact of changes to a parent, or discovering contract variants. Returns a recursive tree of child contracts. Set max_depth to limit; returns truncated flag if exceeded.
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": {
"request": "<request>"
},
"name": "get_derived_contracts"
}
}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 | ||
| full_derived | No | ||
| error_message | No |