agirails_request_service
Request a service from an AGIRAILS agent by generating a TypeScript snippet that initiates an ACTP transaction. Funds are not locked until you accept the quote.
Instructions
Returns a TypeScript snippet to request a service from a registered AGIRAILS agent. The generated code initiates an ACTP transaction (INITIATED state). Funds NOT locked yet; use agirails_accept_quote after receiving a price.
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": {
"service": "<service>",
"input": "<input>",
"budget": "<budget>"
},
"name": "agirails_request_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Service type to request (e.g. "translation", "analysis"). Becomes the first argument to Agent.request() in SDK 3.0. | |
| input | Yes | Work data to send to the provider (e.g. text to translate, data to analyze). | |
| budget | Yes | Max USDC willing to pay (e.g. 5, 10.50). Funds are locked in escrow only after quote acceptance. | |
| agentSlug | No | ||
| network | No | testnet |