get_function_source
Retrieve line-numbered source and metadata for any Solidity function or modifier, including internal, private, and library code, plus outgoing calls to inspect call flows.
Instructions
Get the source (line-numbered) and metadata of any function or modifier, including internal/private ones and those in libraries, plus its outgoing calls.
Args:
repo_path: Project root.
function: "Contract.fn(type1,type2)", "Contract.fn", or bare "fn" if unique.
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": {
"repo_path": "<repo_path>",
"function": "<function>"
},
"name": "get_function_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | ||
| repo_path | Yes |