Playlist Builder Run
playlist_build_runThe Playlist Builder, run by the box: it fills the checklist template's rows from the raw data, publishes the data, then builds and publishes the playlists CheckMyProgress reads. Answered only to main KSAserver's own key: the build requests hold learners' emails. action start, with scope (requests, state, pool or school), ids (the state's two letters, the pool's name, or UNITIDs; none for requests), steps (the step names to switch on; the design's defaults when none), rows (template slot ids; all 45 when none) and dry_run (default true), makes the run and runs it in the background, one at a time: road 1 (measure, discover, web-search, account, patterns, serve, post, census, publish-data, verify), road 2 (gate, build-playlist, slot-calls, publish-playlist, check), then report and harvest-plan. A dry run writes nothing but the run's records and its report: every step that writes says what it would do. A failed step stops its school, with its why; the others go on. On a writing run each published request's learners are emailed that their playlist is ready; an unfinished request stays open with its failing gate. action status answers the run going (its lanes and log) and the run log, newest first; with run, that run's line. action stop stops the run after the step it is on. action requests answers the build requests, the learner's email masked, with optional filters state, school, status (building, published, open), learner, from and to. action harvest answers the proven patterns across the runs with their stage; send_to_harvest, with row and pattern, writes the Harvest register entry as a draft for the Harvest builder.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "playlist_build_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| ids | No | start: the state, the pool's name or the UNITIDs | |
| row | No | send_to_harvest: the slot id | |
| run | No | status: one run's number | |
| from | No | ||
| rows | No | start: the template rows switched on, by slot id | |
| scope | No | start: the scope | |
| state | No | ||
| steps | No | start: the steps switched on | |
| action | No | start, status (the default), stop, requests, harvest or send_to_harvest | |
| school | No | ||
| status | No | ||
| dry_run | No | start: true (the default) writes nothing but the run's records | |
| learner | No | ||
| pattern | No | send_to_harvest: the pattern's key | |
| started_by | No | start: who started it, as the Runs log names them |