analyze_state_variables
Analyze state variables in Solidity projects to audit storage layout, find public state, and understand contract data, with filters for visibility, constants, and immutables.
Instructions
Analyzes state variables across the project or for a specific contract. Use this when auditing storage layout, finding public state, or understanding contract data. Can filter by visibility, include/exclude constants and immutables. Returns variable details including type, visibility, and declaration location. For storage slot layout, use get_storage_layout. Supports pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| summary | No | Summary counts by visibility | |
| has_more | No | True if there are more results beyond this page | |
| variables | No | List of state variables with their context | |
| total_count | No | Total number of state variables found | |
| error_message | No |