factor_run_forge_script
Run Solidity forge scripts on a forked network using a saved script reference or inline source; test execution without spending real tokens.
Instructions
Run a Solidity forge script on a forked network. Pass EITHER scriptRef (a reference returned by other tools in simulationHint — preferred, just pass the string) OR scriptContent (inline Solidity source). No real tokens are spent.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "factor_run_forge_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | Wallet password if encrypted | |
| scriptRef | No | Reference to a pre-saved script (from simulationHint). PREFERRED — just pass this string as-is. The script is already saved on disk. | |
| scriptName | No | Name for the script file (default: Script.sol) | |
| scriptContent | No | Inline Solidity source code. Only use if no scriptRef is available. |