Stop an agent now
stop_agentStop an agent at once: nothing runs, nothing waiting is kept, and its open orders on Lighter are cancelled. Positions and their stops stay as they are, unless closePositions is true (every position closed at market, which needs a key that may act). Works with any access key: stopping is always allowed. resume_agent brings it back.
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": {
"agent": "<agent>"
},
"name": "stop_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| closePositions | No | Also close every position at market on Lighter. |