Run Toolshed Actors with an agent payment budget
Use this when an agent needs to compare PDF revisions or supplier CSV prices and does not already have an Apify account. Apify's Agent General Interface, or AGI, supplies the payment entry point; Toolshed supplies the Actors and their input/output contracts.
Choose the job first
| Job | Actor | Start with | Read the result |
|---|---|---|---|
| Compare two PDF revisions | koHaO9g0bPo9j1HrG |
PDF sample JSON and guide | textChanges, fieldChanges,
reviewStatus, recommendedAction; keep
manual-review warnings |
| Compare supplier prices against a catalog | J7Rh4G3MAG4MeFaaW |
SKU sample JSON and guide | Match rows and exception rows; an exception is a request to resolve evidence, not a purchasing recommendation |
The PDF Actor does not provide OCR or visual redlines. The SKU Actor compares explicit product identities and submitted prices; it does not infer interchangeable parts, calculate freight or place an order. Read the linked guide before choosing either tool.
Check before spending
Download the source ZIP, extract it and run either command with Python 3.8 or newer:
python3 agent_preflight.py pdf
python3 agent_preflight.py skuThese commands only read public metadata, checking Actor identity, publication and Limited permissions while returning current pricing and AGI protocols. They do not start an Actor, purchase a token or submit a payment. The machine-readable catalog links each Actor's current OpenAPI schema, sample input and pricing page.
Prices checked November 10, 2026: PDF charges $0.01 per comparison, while SKU charges $0.001 per report row. Both also have a $0.00001 start event per GB of configured memory, with a minimum of one event. SKU additionally passes platform usage costs to the caller. Check current pricing rather than treating these examples as a fixed quote.
Use Apify's payment path
Read the current AGI instructions and Apify payment overview before authorizing a purchase. AGI is experimental. Its prepaid token currently requires at least $1, expires after 14 days and has a hard spending cap; unused credit is non-refundable. The token can call the normal Apify API or MCP server for Actors with Limited permissions. All ten Actors in this catalog had Limited permissions when checked November 10, 2026.
- Read
GET https://agi.apify.com/protocolsto discover available payment protocols, then use a compatible wallet under the buyer's authorized budget. - Buy a prepaid token using the provider's current protocol
instructions, keeping the returned token in the environment as
APIFY_TOKEN. Keep tokens, wallet keys and private inputs out of prompts, public links and logs. - Preview the bundled result with
python3 run_demo.py pdforpython3 run_demo.py sku, then add--liveto run it with that token. The runner setsmaxTotalChargeUsd=0.02and checks selected documented result fields. The prepaid purchase amount and the per-run cap are different limits; neither guarantees that a job will complete. - Save the result and any reports you need before the temporary account expires. For private PDFs, use storage accessible to that same account and the Actor's documented private-store mode; another account's private store is not made accessible by buying a token.
For an agent that already has a prepaid token, the existing MCP instructions use the same bearer credential. Read Actor details and its input schema before calling it.
AGI also documents a proxied x402 run route that returns dataset results, with its own minimum ceiling, settlement and single-read pickup rules. Follow those current instructions if you choose that route, and save the successful response immediately. The downloadable runner uses the regular Apify API with a bearer token, not the proxied route.
Recover without paying twice
The runner does not automatically repeat an interrupted run POST, because a timeout can occur after a run has started. Check the account's runs before starting a replacement. For uncertain payment settlement, follow the exact protocol's recovery rules and preserve its reference; do not submit a new payment merely because the response was lost.
If a result says evidence is missing, ambiguous or unsupported, resolve that evidence before acting on the comparison. A successful run status does not mean the documents are legally equivalent or a supplier is safe to buy from.
What has been tested
The PDF and SKU samples passed hosted runs with our existing Apify account, and unsigned AGI checks returned the protocol listing, the expected HTTP 402 payment challenge and HTTP 401 for an unauthenticated balance check. A funded AGI purchase, prepaid-account run and proxied paid run have not been tested by Toolshed, so those are separate validation steps rather than completed claims.