list_contracts
List all contracts in a Solidity project with filters (type, path, pagination). Discover contract names, inheritance, and type flags to understand codebase structure.
Instructions
Lists all contracts in a Solidity project with optional filtering by type and path. Use this when discovering contracts in an unfamiliar codebase, filtering out test/library dependencies, or finding specific contract types like interfaces or abstracts. Returns contract metadata including name, path, type flags (is_abstract, is_interface, is_library), and direct inheritance list. Does not include function details; use get_contract for full contract data. Supports pagination via offset/limit parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| has_more | No | True if there are more results beyond this page | |
| contracts | Yes | ||
| total_count | Yes | ||
| error_message | No |