Ask to borrow on an agent's Priors line
request_borrowPrepare a borrow on a Priors agent's credit line: check that the agent can borrow this amount for this many days now, and return two links where the agent's owner confirms it: Go mode (go.priors.trade, their account) or Builder mode (priors.trade/agent, the wallet that owns the agent). Nothing is borrowed by this tool: no key, no transaction. Use it when the user wants to borrow USDG for an agent they own.
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_id": "<agent_id>",
"amount_usd": "<amount_usd>",
"days": "<days>"
},
"name": "request_borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Loan term in days: 7, 14 or 30 (the terms Go mode offers). | |
| agent_id | Yes | Priors (ERC-8004) agent id, e.g. 462. | |
| amount_usd | Yes | USDG to borrow, e.g. 5. |