Cast an on-chain Governor vote from the Safe
governor_voteCasts an on-chain vote from a Safe on OpenZeppelin or Compound-style Governor proposals. Verify the proposal is Active and the Safe has voting power before this irreversible gas-costing transaction.
Instructions
Votes on an OpenZeppelin or Compound-style Governor by executing castVoteWithReason from the Safe. This is a real on-chain transaction that costs gas and cannot be undone or changed. Check governor_proposal_state first to confirm the proposal is Active and the Safe has voting power.
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": {
"governor": "<governor>",
"proposalId": "<proposalId>",
"support": "<support>"
},
"name": "governor_vote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Public rationale stored on-chain with the vote. Costs extra gas but is strongly recommended for an agent vote. | |
| support | Yes | How to vote. Maps to Governor support values 1, 0 and 2. | |
| governor | Yes | Governor contract address | |
| proposalId | Yes | On-chain proposal id (decimal or 0x hex) | |
| skipChecks | No | Bypass the pre-flight state and voting-power checks. Only for unusual Governor forks that do not implement the standard view methods. |