Playlist Builder Run
playlist_build_runThe Playlist Builder, run by the box: it fills the checklist template's rows from the raw data, posts them to the working courseshelf.db and reads them back; playlist assembly, a separate start, builds, publishes and reads back the playlists CheckMyProgress reads. Publishing the data is not the Builder's. 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: measure, discover, web-search, account, patterns, post (into the working courseshelf.db, each change with its undo record) and verify (every posted value read back from it), 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 playlist assembly run each published and read-back request's learners are emailed that their playlist is ready; an unfinished request stays open with why. action start with scope road2 and version (the confirmed production publish number): playlist assembly (Road 2), after the data is published apart from the Builder. What to assemble: from_run (a completed Builder run: the checklists it changed and verified, less those its correction removed), and/or checklists (checklist IDs from that version, changed or not; named checklists are the ones run), or from_build_run (a reviewed assembly run whose same working copies are promoted). How far (how_far): gate (the completeness check), build (working copies for review) or promote (the default: through promotion to the playlist store and the readback as CheckMyProgress reads it). ai (default false) records that AI slot assistance was asked, with ai_scope: all (every selected checklist) or listed (ai_checklists; an empty list makes no call); its runner is main KSAserver's, started from the Manage page, which works the copies before promotion within the Services card's limits. The box is confirmed to serve the version before any build. steps or rows given empty name nothing, and no run starts; omitted, they take the defaults. 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 |
|---|---|---|---|
| ai | No | start, scope road2: AI slot assistance asked (default false); main's runner works the copies before promotion | |
| 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 or report: one run's number | |
| from | No | ||
| rows | No | start: the template rows switched on, by slot id | |
| scope | No | start: the scope; road2 builds the playlists of a completed run | |
| state | No | ||
| steps | No | start: the steps switched on | |
| action | No | start, status (the default), stop, requests, report (with run, and optionally school: an ended run's stage grid, or that school's views and its not-printed and capture-gap records; read only), harvest, send_to_harvest, or ai_record (with run and results: AI slot assistance's results or failure, kept with that run) | |
| school | No | ||
| status | No | ||
| dry_run | No | start: true (the default) writes nothing but the run's records | |
| how_far | No | start, scope road2: the completeness check, working copies for review, or through promotion and readback (the default) | |
| learner | No | ||
| pattern | No | send_to_harvest: the pattern's key | |
| results | No | ai_record: AI slot assistance's results or failure for run | |
| version | No | start, scope road2: the production publish number confirmed to hold that run's changes | |
| ai_scope | No | start, scope road2, with ai: all selected checklists, or the checklists listed in ai_checklists | |
| from_run | No | start, scope road2: the completed Builder run whose Verify records name the changed checklists | |
| requests | No | start, scope road2: the selected build requests, each {request_id, order_id, checklist_id, unitid}: only their checklists are assembled; each request and rebuild order is done only when the playlist read back is the one promoted, and its learners are then emailed; given empty, nothing starts | |
| checklists | No | start, scope road2: checklist IDs from the confirmed version, run alone; given empty, nothing starts | |
| started_by | No | start: who started it, as the Runs log names them | |
| ai_checklists | No | start, scope road2, with ai_scope listed: the checklists AI slot assistance works; empty makes no call | |
| from_build_run | No | start, scope road2: the reviewed assembly run whose same working copies are promoted |