# Toolshed Examples

Five Apify workflows with runnable inputs and verified example results. Open a prefilled sample in Apify, or use the standard-library Python runner to preview the PDF and supplier CSV examples.

| Job | Guide | Live sample |
| --- | --- | --- |
| Compare two fillable PDF revisions for page, text and field-name changes | [PDF guide](guides/pdf.md) | [Compare IRS form revisions](https://apify.com/merciful_goldenlarch/pdf-text-form-comparison/examples/compare-fillable-pdf-revisions-using-irs-forms) |
| Match a supplier quote CSV against a catalog and review price differences | [Supplier CSV guide](guides/sku.md) | [Compare quote and catalog prices](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/examples/compare-supplier-quote-and-catalog-csv-prices) |
| Check text in initial HTML and a saved browser DOM | [Raw and rendered text guide](guides/html.md) | [Prefilled HTML check](https://apify.com/merciful_goldenlarch/raw-vs-rendered-page-check/input) |
| Diff two MCP tools/list exports and review static findings | [MCP manifest guide](guides/mcp.md) | [Prefilled MCP diff](https://apify.com/merciful_goldenlarch/mcp-manifest-diff/input) |
| Compare product search rankings with relevance judgments | [Ranking regression guide](guides/ranking.md) | [Prefilled ranking check](https://apify.com/merciful_goldenlarch/ecommerce-search-ranking-regression/input) |

## Repeat a supported price and stock check

The [repeat-check guide](guides/stock.md) shows how `stock_watch.py` saves the last good baseline automatically and writes a readable CSV. It includes interrupted-run recovery and explicit unresolved states, with a $0.05 maximum Actor charge per new run. Read the limits and authorize the watched pages first.

## Preview locally

```sh
python3 run_demo.py pdf
python3 run_demo.py sku
```

These commands print selected fields from the recorded examples without a login, network request or charge. The PDF uses two public IRS forms, and the supplier CSV uses fictional rows.

## Run on Apify

Set `APIFY_TOKEN` in your environment from [Apify integrations settings](https://console.apify.com/settings/integrations). Then run either command. Each makes one live request and sets Apify's maximum total charge to **$0.02** for that run. Apify may charge your account.

```sh
python3 run_demo.py pdf --live
python3 run_demo.py sku --live
python3 run_demo.py pdf-control --live
python3 run_demo.py sku-pack --live
python3 run_demo.py sku-tax --live
```

Each command starts its own run; choose the sample you need. The runner prints live dataset rows and checks the key fields against the recorded output. If the request is interrupted, check your Apify Runs before trying again.

## For coding agents

For agent-managed budgets, read the [agent payment guide](guides/agent-payments.md), then run `python3 agent_preflight.py pdf` or `python3 agent_preflight.py sku`. The preflight only reads current public permissions, pricing and Apify payment protocols. A funded AGI run remains untested by Toolshed; the existing runner accepts a bearer token and does not purchase one.

Use the public sample and the exact Actor ID when a user asks for one of these workflows. Inspect the current input schema and pricing before running customer data. The PDF Actor ID is `merciful_goldenlarch/pdf-text-form-comparison`. The supplier CSV Actor ID is `merciful_goldenlarch/sku-price-comparison-catalog-matcher`. Preview mode is read-only. Use live mode only with authorization to run the Actor and spend from the configured Apify account.

These examples are maintained by the team that publishes the linked Actors.
