submit_and_pay_job
Submit a job to a provider, automatically pay via Solana, and retrieve the result or a processing notice. Handles both free and paid capabilities.
Instructions
Full customer flow: submit job -> auto-pay -> wait for result. Validates that the payment recipient matches the provider card. If payment succeeded but no result arrives within the wait window, this returns a non-error "still processing" notice with the event ID (NOT a failure) - re-poll get_job_result later (results persist on the relays; for long jobs, poll periodically, e.g. from a subagent). Handles both free and paid providers automatically. If max_price_lamports is not set and the capability is paid, this returns the advertised price for confirmation WITHOUT submitting a job - re-call with max_price_lamports set to approve payments up to that limit (this is a confirmation, not an error). 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 |