Merge Solidity imports
merge_importsMerge a Solidity file and its imports into one source, returning it by default or writing it to a specified output path when requested.
Instructions
Merge a Solidity file and its imports with kritisi (sol-merger). By default the merged source is returned without touching any file; set output to write it.
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": {
"path": "<path>"
},
"name": "merge_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .sol file | |
| output | No | Optional path for the merged source; no file is written when omitted | |
| overwrite | No | Allow replacing an existing output file |