submit_and_pay_job
Submit a job to a provider and auto-pay if within set price limit. Returns job event ID on timeout for later result retrieval.
Instructions
Full customer flow: submit job -> auto-pay -> wait for result. Validates that the payment recipient matches the provider card. On timeout after submission, the job event ID is returned so the caller can follow up with get_job_result. Handles both free and paid providers automatically. If max_price_lamports is not set and provider requests payment, the job is rejected with the price - set max_price_lamports to auto-approve payments up to that limit. COST: input is sent inline in the tool call, so a large input pays output tokens on the calling LLM. For files or git diffs, prefer submit_and_pay_job_from_file or submit_diff_review respectively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| provider_npub | Yes | ||
| capability | No | general | |
| kind_offset | No | ||
| timeout_secs | No | ||
| max_price_lamports | No |