Scrub API
POST/v1/tools/list_addablefree

What can be added

What Add offers on Scrub's pages, free: the actions and tools that can be added to one of this workspace's files after the steps already chained on it, in order. Each with its name, its title and feeds: which of its file inputs the file feeds (as the flow's input, src unless input names it) and which an earlier step's result feeds (step.output, a step named by its action or tool, _2 where it is chained a second time). One that cannot be fed yet is left out until a step makes what it takes; words it needs are given as its settings. Chained into a flow with save_flow, each step's inputs as feeds says, it runs by the flow's name, priced before it runs.

Fields

FieldTypeDefaultWhat it is
filestringRequiredThe file, by its file_id from list_files
stepsarrayNoneThe actions and tools already chained on it, in order, by their names as tools/list gives them
inputstringNoneThe flow's input the file is given as; src when left out

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/list_addable \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.