forge_selectors
Lists function selectors from compiled Foundry contracts, optionally filtered by contract name, to inspect and verify selector mappings for a project.
Instructions
List all function selectors from compiled contracts (forge selectors list).
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": {
"projectPath": "<projectPath>"
},
"name": "forge_selectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Foundry profile to use (maps to FOUNDRY_PROFILE env var) | |
| projectPath | Yes | Absolute path to the foundry project directory | |
| contractName | No | Filter by contract name |