{"at":"2026-11-23T02:02:03.959Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:02:04.873Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"doricomcp","title":"doricomcp","version":"0.1.1","websiteUrl":"https://github.com/mka142/doricomcp"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Dorico MCP server: read and write a live Dorico 6 score by conversation.\n\nPositions: every tool takes either `bar` (1-based) + `beat` (offset in crotchets from the bar start, e.g. \"0\",\n\"1\", \"3/2\") or an absolute `pos` in crotchets from the flow start. Voices are voice-stream ids from\nget_score_overview (e.g. piano: 2 = right hand, 4 = left hand). Event ids come from read_music/read_markings.\nEvery write is one undo step, verified by reading the score back; a failed check is undone automatically.\n\nStart with get_score_overview, then get_bar_map and read_music. Write with add_notes and the add_*/set_* tools.\nUse screenshot to look at the result. list_capabilities shows what is confirmed live and what is experimental.\nDorico's API cannot read: lyrics, fp and sffz (sffz reads as sfz), tonic/mode of keys (only the signature),\ntitle/composer; and per-note properties in voices that contain trills, ornaments, arpeggios, techniques or glissandi.\nTempo values are read by selecting the tempo marking; undo skips those selection steps.\nUndo works any time; redo only directly after undo (any read clears Dorico's redo stack).\n","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T02:02:04.873Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:02:04.876Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"doricomcp","title":"doricomcp","version":"0.1.1","websiteUrl":"https://github.com/mka142/doricomcp"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Live Dorico status (mode, selection, note input, undo availability) from Remote Control.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"dorico_statusArguments","type":"object"},"name":"dorico_status"},{"description":"The confirmation matrix: every capability, its mechanism and whether the live harness confirmed it.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"list_capabilitiesArguments","type":"object"},"name":"list_capabilities","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_capabilitiesOutput","type":"object"}},{"description":"Search Dorico's 1,200 commands (regex on name/display name) with their parameters and enum values.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"filter":{"default":"","title":"Filter","type":"string"},"limit":{"default":40,"title":"Limit","type":"integer"}},"title":"describe_commandsArguments","type":"object"},"name":"describe_commands","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"describe_commandsOutput","type":"object"}},{"description":"Exact accepted values of a Dorico enum type (or regex over enum type names).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"describe_enumsArguments","type":"object"},"name":"describe_enums"},{"description":"Type, display name and enum values of an event property (e.g. kNoteVelocity, kEventColour).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"describe_propertyArguments","type":"object"},"name":"describe_property","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"required":["result"],"title":"describe_propertyOutput","type":"object"}},{"description":"Library entities (ids + names), live from Dorico: kInstrumentCollection, kClefCollection,\nkPlayingTechniqueAppearanceCollection, kOrnamentCollection, kTempoPresetCollection, kParagraphStyleCollection...\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"collection":{"title":"Collection","type":"string"},"filter":{"default":"","title":"Filter","type":"string"}},"required":["collection"],"title":"list_libraryArguments","type":"object"},"name":"list_library","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_libraryOutput","type":"object"}},{"description":"Escape hatch: run any catalogued Dorico command (\"Namespace.Command?Param=value&...\"), validated\nagainst the catalogue. With select_event_id the event is selected first in the same undo step.","inputSchema":{"properties":{"command":{"title":"Command","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"select_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Select Event Id"}},"required":["command"],"title":"run_commandArguments","type":"object"},"name":"run_command"},{"description":"A picture of Dorico's score window, to check engraving by eye. bar: scroll there first; zoom: view zoom in\npercent for the picture (e.g. 200 to read dynamics and small markings), restored afterwards.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"flow":{"default":0,"title":"Flow","type":"integer"},"zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Zoom"}},"title":"screenshotArguments","type":"object"},"name":"screenshot"},{"description":"Dorico's open dialogs (every window other than a project window): title, modal, the texts shown and the\ncontrols (role, title or label, value, enabled, path). A modal dialog blocks all commands until it is answered\nwith dialog_click / dialog_set. Needs Accessibility permission for the app running this server.","inputSchema":{"properties":{},"title":"list_dialogsArguments","type":"object"},"name":"list_dialogs"},{"description":"Press a control in a Dorico dialog: a button (\"OK\", \"Cancel\", \"Apply\", \"Close\"), checkbox, radio button or\ntab, by its title, the label before it, or its path from list_dialogs. dialog: its title, if several are open.","inputSchema":{"properties":{"control":{"title":"Control","type":"string"},"dialog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dialog"}},"required":["control"],"title":"dialog_clickArguments","type":"object"},"name":"dialog_click"},{"description":"Set a control in a Dorico dialog: a checkbox or radio button to true/false, a text field to text, a pop-up\nor combo box to one of its items (by name). control: its title, the label before it, or its path.","inputSchema":{"properties":{"control":{"title":"Control","type":"string"},"dialog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dialog"},"value":{"title":"Value","type":"string"}},"required":["control","value"],"title":"dialog_setArguments","type":"object"},"name":"dialog_set"},{"description":"Forget cached reads (time signatures, dynamics, keys, structure); use after editing in Dorico by hand.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"refreshArguments","type":"object"},"name":"refresh"},{"description":"Players, instruments, layouts and flows; per flow its streams and voices (voice-stream id -> instrument,\nstaff index, voice index). Use the voice ids for read_music/add_notes.","inputSchema":{"properties":{},"title":"get_score_overviewArguments","type":"object"},"name":"get_score_overview"},{"description":"Bar numbers <-> positions, time signatures (read by Dorico's own equality API, cached) and optionally key\nsignatures (include_keys: a letter-entry probe into an empty span; it plays 7 audition notes).","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"include_keys":{"default":false,"title":"Include Keys","type":"boolean"}},"title":"get_bar_mapArguments","type":"object"},"name":"get_bar_map"},{"description":"Notes, chords, rests (explicit and implicit), grace notes, tuplets, slurs and articulations per voice,\nwith exact positions, durations, spelled pitches, MIDI numbers and event ids. Range: bars (inclusive)\nor positions [from_pos, to_pos).\ndetail=\"compact\": per voice and bar the notes in add_notes syntax plus their ids (about a tenth of the size; use it\nfor long ranges or many voices). detail=\"grid\": one row per onset of any voice (or every grid_step crotchets,\ne.g. \"1/2\") with what each voice sounds, for checking verticals.","inputSchema":{"properties":{"detail":{"default":"full","title":"Detail","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"grid_step":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Grid Step"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"title":"read_musicArguments","type":"object"},"name":"read_music"},{"description":"Dynamics (levels incl. sfz/rfz/fz, hairpins), slurs, clefs, ottavas, text, tempo (text, bpm), holds, rehearsal\nmarks, repeats, breaks, playing techniques (name), ornaments, time/key signatures in a range. Each row says whether its content is readable.\nA dynamic group lists its parts in order, each with its own position (bar, beat): a level (p, f...) or a hairpin\n(cresc/dim, length, end); \"sub\" identifies a hairpin part for set_property.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"}},"title":"read_markingsArguments","type":"object"},"name":"read_markings"},{"description":"What is in force at a point: time signature, key signature, clef, dynamic level (and a hairpin running\nthrough the point), ottava, the last tempo marking (text, bpm), and the notes sounding in the voice.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"include_key":{"default":false,"title":"Include Key","type":"boolean"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Voice"}},"title":"read_context_atArguments","type":"object"},"name":"read_context_at"},{"description":"Voice-leading check of the score: parallel and contrary fifths/octaves/unisons, hidden fifths/octaves in the\nouter voices, crossings, spacing over an octave between upper voices, leaps over max_leap semitones and tritone\nleaps. voices: from highest to lowest (default: ordered by average pitch). chords (optional harmonic plan,\n\"bar[:beat] symbol, ...\", e.g. \"28 D, 28:2 A7, 29 Bm/F#\") adds doubled thirds (major chords), doubled sevenths,\ndoubled leading tone (needs key, e.g. \"D\" or \"Bm\"), missing thirds, non-chord tones and wrong bass notes.\nA voice holding a chord counts by its top note.","inputSchema":{"properties":{"chords":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Chords"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Key"},"max_leap":{"default":12,"title":"Max Leap","type":"integer"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"title":"check_voice_leadingArguments","type":"object"},"name":"check_voice_leading"},{"description":"What changed in a flow: without since, take a snapshot and return its token; with since=<token>, list the\nevents added, removed and changed since then, each marked by \"server\" (written through these tools) or \"Dorico\"\n(edited in Dorico by hand), and a new token. Changes inside dynamic groups (levels) are not seen.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"score_changesArguments","type":"object"},"name":"score_changes"},{"description":"The current selection in Dorico (event type and, if available, its properties).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"get_selectionArguments","type":"object"},"name":"get_selection"},{"description":"House-style options: kind kEngraving (per score), kNotation (per flow: flow_id), kLayout (per layout: layout_id).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"filter":{"default":"","title":"Filter","type":"string"},"flow_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Flow Id"},"kind":{"default":"kLayout","title":"Kind","type":"string"},"layout_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"title":"Layout Id"}},"title":"get_optionsArguments","type":"object"},"name":"get_options","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"get_optionsOutput","type":"object"}},{"description":"Write notes, chords and rests one after another from a position.\nnotes: space-separated items \"PITCHES:DURATION\"; chords join pitches with \"+\"; \"r\" is a rest; a missing\nduration repeats the previous one. Durations: crotchets (1, 3/2, 1/2) or w h q e s t (+ dots, e.g. \"q.\").\nPitches: C4 = middle C, F#5, Bb3. Example: \"Eb4+G4+C5:h. G4:e Eb5:q. C5:s r:q\".\nreplace=True first clears the notes and rests of the span (slurs, text and other markings there stay);\notherwise notes are added (chords merge with existing notes).","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"replace":{"default":false,"title":"Replace","type":"boolean"},"voice":{"title":"Voice","type":"integer"}},"required":["notes","voice"],"title":"add_notesArguments","type":"object"},"name":"add_notes"},{"description":"Delete the notes, rests, grace notes and tuplets of a voice in a range (bars inclusive, or positions\n[from_pos, to_pos)); slurs, text and other markings in the voice stay unless include_markings=True.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"include_markings":{"default":false,"title":"Include Markings","type":"boolean"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice"],"title":"delete_rangeArguments","type":"object"},"name":"delete_range"},{"description":"Delete events by id: notes, rests or markings (dynamics, hairpins, slurs, text, clefs, octave lines...).\nIds come from read_music / read_markings.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids"],"title":"delete_eventsArguments","type":"object"},"name":"delete_events"},{"description":"Change one note's pitch and spelling (e.g. \"F#4\", \"Ebb5\") in place: it keeps its id, rhythm, slurs and\narticulations.","inputSchema":{"properties":{"event_id":{"title":"Event Id","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"pitch":{"title":"Pitch","type":"string"}},"required":["event_id","pitch"],"title":"set_pitchArguments","type":"object"},"name":"set_pitch"},{"description":"Change a note's or rest's duration (crotchets or w h q e s t with dots).","inputSchema":{"properties":{"duration":{"title":"Duration","type":"string"},"event_id":{"title":"Event Id","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_id","duration"],"title":"set_durationArguments","type":"object"},"name":"set_duration"},{"description":"Apply an edit to notes: pitch_up/pitch_down (diatonic steps x count), chromatic_up/down, octave_up/down,\nrespell_above/below, double_duration, halve_duration, tie (to the next note of the same pitch), delete;\nremove_rests on rest ids (Dorico's Remove Rests: the voice shows a gap there, e.g. a divisi line that pauses).","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids","action"],"title":"edit_notesArguments","type":"object"},"name":"edit_notes"},{"description":"Add a note at an interval to each given note, making a chord: \"3\" (third above), \"-3\", \"maj3\", \"min6 below\", \"p5\", \"octave\".","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"interval":{"title":"Interval","type":"string"}},"required":["event_ids","interval"],"title":"add_intervalArguments","type":"object"},"name":"add_interval"},{"description":"Add a grace note before the note at the given position (value: notated length, default quaver).","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pitch":{"title":"Pitch","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"default":"e","title":"Value","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["pitch","voice"],"title":"add_grace_noteArguments","type":"object"},"name":"add_grace_note"},{"description":"Copy (or move) notes and rests of a range to another place or voice/staff (markings are not copied).","inputSchema":{"properties":{"dest_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Dest Bar"},"dest_beat":{"default":"0","title":"Dest Beat","type":"string"},"dest_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dest Pos"},"dest_voice":{"title":"Dest Voice","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"move":{"default":false,"title":"Move","type":"boolean"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice","dest_voice"],"title":"copy_rangeArguments","type":"object"},"name":"copy_range"},{"description":"A tuplet typed with Dorico's note input, overwriting what is there: ratio \"3:2\", \"5:4\"; unit = the\ntuplet's note value (e, q, s, h); notes in add_notes syntax with notated values, e.g. \"C5:e D5 E5\" or\n\"Eb4+G4:q B4 D5\". Accidentals are always explicit (C#5, Ab4); plain letters mean naturals.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"ratio":{"title":"Ratio","type":"string"},"unit":{"title":"Unit","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["ratio","unit","notes","voice"],"title":"add_tupletArguments","type":"object"},"name":"add_tuplet"},{"description":"Exchange the notes and rests of two voices in a range (e.g. divisi lines trading places), one undo step.\nNotes are re-created with their pitch and rhythm (new ids); slurs, text and markings stay in their voice.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"other_voice":{"title":"Other Voice","type":"integer"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice","other_voice"],"title":"swap_voicesArguments","type":"object"},"name":"swap_voices"},{"description":"Start a new voice on the same staff as `voice` (e.g. a second, stems-down voice), typing `notes`\n(add_notes syntax, plain or single-dotted values). Returns the new voice id for later add_notes calls.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["notes","voice"],"title":"add_voiceArguments","type":"object"},"name":"add_voice"},{"description":"staccato, staccatissimo, tenuto, accent, marcato, stress, unstress, staccato_tenuto on notes.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"}},"required":["event_ids","kind"],"title":"add_articulationArguments","type":"object"},"name":"add_articulation"},{"description":"A line from one note to another in the same voice: slur, cresc, dim, messa_di_voce (hairpins),\n8va, 8vb, 15ma, 15mb (octave lines), glissando. Only that voice gets it, even with other voices on the staff.\nspans: several [start_event_id, end_event_id] pairs in one call (slurs: one undo step), e.g. a slur over every\npair of quavers. Hairpins end at the end of the end note; for exact positions use add_hairpin.","inputSchema":{"properties":{"end_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"End Event Id"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"spans":{"anyOf":[{"items":{"items":{"type":"integer"},"type":"array"},"type":"array"},{"type":"null"}],"default":null,"title":"Spans"},"start_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Start Event Id"}},"required":["kind"],"title":"add_spanArguments","type":"object"},"name":"add_span"},{"description":"A hairpin (cresc, dim, messa_di_voce) from one position to another, e.g. bar 33 beat 0 to bar 33 beat 3/2,\nwherever notes start (also inside a held note). voices: put the same hairpin on several instruments (one voice\neach), e.g. the whole string section. A hairpin starting at a dynamic joins its group (p<), reported as\nmerged_into. Returns the direction, positions and drawn length.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_beat":{"default":"0","title":"To Beat","type":"string"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"required":["kind","voice"],"title":"add_hairpinArguments","type":"object"},"name":"add_hairpin"},{"description":"An immediate dynamic (p, pp, mp, mf, f, ff, sfz, fp, ...) on the voice's instrument at a position, also\nwhere no note starts (inside a held note) or where a hairpin ends. voices: the same on several instruments.\nat: more dynamics in the same call, e.g. [{\"value\": \"f\", \"bar\": 34}, {\"value\": \"p\", \"bar\": 36, \"beat\": \"2\"}]\n(each takes bar + beat or pos). One undo step; returns only the dynamics created.","inputSchema":{"properties":{"at":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"At"},"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"title":"Value","type":"string"},"voice":{"title":"Voice","type":"integer"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"required":["value","voice"],"title":"add_dynamicArguments","type":"object"},"name":"add_dynamic"},{"description":"kind=ornament (value tr, mordent, inv, turn), hold (fermata, breath, caesura...),\nplaying_technique (value: a name like pizz., arco, con sord., sul pont., ord., or a library id like pta.pizzText),\ntie, articulation (value staccato...).","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"value":{"default":"","title":"Value","type":"string"}},"required":["event_ids","kind"],"title":"add_note_markingArguments","type":"object"},"name":"add_note_marking"},{"description":"Staff text (e.g. \"dolce\", \"espress.\") attached to a voice at a position.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"text":{"title":"Text","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["text","voice"],"title":"add_textArguments","type":"object"},"name":"add_text"},{"description":"A clef change on the voice's staff: clef.treble, clef.bass, clef.alto, clef.tenor, clef.treble8ba ...","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"clef":{"title":"Clef","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["clef","voice"],"title":"add_clefArguments","type":"object"},"name":"add_clef"},{"description":"A tempo marking: \"q=120\", \"Allegro q=132\", \"h.=60\", \"rit.\", \"a tempo\".","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"title":"Value","type":"string"}},"required":["value"],"title":"set_tempoArguments","type":"object"},"name":"set_tempo"},{"description":"Time signature from a bar on: 3/4, 6/8, 2+3/8, c, cut. Single n/d values are read back to confirm.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"set_time_signatureArguments","type":"object"},"name":"set_time_signature"},{"description":"Key signature from a bar on: \"2#\", \"3b\", \"0\", or names like \"Eb\", \"F#m\", \"c minor\".","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"set_key_signatureArguments","type":"object"},"name":"set_key_signature"},{"description":"Barline at the start of a bar: \"||\" double, \"|:\" start repeat, \":|\" end repeat, \":|:\", \"|||\" final, \":\" dashed.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"}},"required":["kind","bar"],"title":"add_barlineArguments","type":"object"},"name":"add_barline"},{"description":"segno, coda, fine, \"to coda\", \"D.C.\", \"D.C. al Fine\", \"D.C. al Coda\", \"D.S. al Fine\", \"D.S. al Coda\".","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"add_repeat_markerArguments","type":"object"},"name":"add_repeat_marker"},{"description":"A rehearsal mark (next letter in sequence) at the start of a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["bar"],"title":"add_rehearsal_markArguments","type":"object"},"name":"add_rehearsal_mark"},{"description":"Force a system or frame (page) break before a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"default":"system","title":"Kind","type":"string"}},"required":["bar"],"title":"add_breakArguments","type":"object"},"name":"add_break"},{"description":"Set any event property (all layouts), e.g. kNoteVelocity=100, kEventColour=#ffff0000, kEventScale=kCue,\nkNoteForcedVoiceDirection... Omit value to reset to default. See describe_property.\nkDynamicGradualChangeDuration (hairpin length in crotchets) also works on a hairpin joined to a dynamic (p<);\npart: the hairpin's \"sub\" from read_markings when its group holds several hairpins (> <).","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"name":{"title":"Name","type":"string"},"part":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Part"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Value"}},"required":["event_ids","name"],"title":"set_propertyArguments","type":"object"},"name":"set_property"},{"description":"Set a house-style option (paths and values from get_options). kind: kEngraving, kNotation (flow_ids),\nkLayout (layout_ids). Written via Dorico's own commands (the setoptions message ignores layout ids).","inputSchema":{"properties":{"flow_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Flow Ids"},"kind":{"title":"Kind","type":"string"},"layout_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Layout Ids"},"path":{"title":"Path","type":"string"},"value":{"title":"Value","type":"string"}},"required":["kind","path","value"],"title":"set_optionArguments","type":"object"},"name":"set_option"},{"description":"Add a solo (or section) player holding an instrument from the library, e.g. instrument.strings.violin,\ninstrument.wind.flute (list_library kInstrumentCollection).","inputSchema":{"properties":{"instrument":{"title":"Instrument","type":"string"},"section":{"default":false,"title":"Section","type":"boolean"}},"required":["instrument"],"title":"add_playerArguments","type":"object"},"name":"add_player"},{"description":"Give an existing player (index in get_score_overview players) an extra instrument (doubling).","inputSchema":{"properties":{"instrument":{"title":"Instrument","type":"string"},"player_id":{"title":"Player Id","type":"integer"}},"required":["player_id","instrument"],"title":"add_instrumentArguments","type":"object"},"name":"add_instrument"},{"description":"Rename a player (index in get_score_overview players).","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"player_id":{"title":"Player Id","type":"integer"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Short Name"}},"required":["player_id","name"],"title":"rename_playerArguments","type":"object"},"name":"rename_player"},{"description":"Add a new flow (movement) at the end of the project, with all players.","inputSchema":{"properties":{},"title":"add_flowArguments","type":"object"},"name":"add_flow"},{"description":"Rename a flow (ids from get_score_overview flows).","inputSchema":{"properties":{"flow_id":{"title":"Flow Id","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["flow_id","name"],"title":"rename_flowArguments","type":"object"},"name":"rename_flow"},{"description":"Delete a flow and all its music (one undo step; undo restores it). Dorico's \"all music ... will also be\ndeleted\" confirmation is answered OK. The last flow cannot be deleted.","inputSchema":{"properties":{"flow_id":{"title":"Flow Id","type":"integer"}},"required":["flow_id"],"title":"delete_flowArguments","type":"object"},"name":"delete_flow"},{"description":"Remove an instrument and all its music (one undo step; undo restores it). Instrument ids are in\nget_score_overview players. Dorico's \"will also delete all its music\" confirmation is answered OK.","inputSchema":{"properties":{"instrument_id":{"title":"Instrument Id","type":"integer"}},"required":["instrument_id"],"title":"remove_instrumentArguments","type":"object"},"name":"remove_instrument"},{"description":"Add a custom score layout (optionally named). Part layouts are created automatically with players.","inputSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"}},"title":"add_layoutArguments","type":"object"},"name":"add_layout"},{"description":"Rename a layout (ids from get_score_overview layouts).","inputSchema":{"properties":{"layout_id":{"title":"Layout Id","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["layout_id","name"],"title":"rename_layoutArguments","type":"object"},"name":"rename_layout"},{"description":"Include or exclude flows in a layout (Dorico does not expose a layout's flows for read-back).","inputSchema":{"properties":{"flow_ids":{"items":{"type":"integer"},"title":"Flow Ids","type":"array"},"include":{"default":true,"title":"Include","type":"boolean"},"layout_id":{"title":"Layout Id","type":"integer"}},"required":["layout_id","flow_ids"],"title":"layout_flowsArguments","type":"object"},"name":"layout_flows"},{"description":"Instrument order template, e.g. instrumentscoreorder.orchestral, instrumentscoreorder.windband,\ninstrumentscoreorder.choral (list_library kInstrumentScoreOrderCollection).","inputSchema":{"properties":{"order":{"title":"Order","type":"string"}},"required":["order"],"title":"set_score_orderArguments","type":"object"},"name":"set_score_order"},{"description":"Scroll Dorico's view to a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["bar"],"title":"go_toArguments","type":"object"},"name":"go_to"},{"description":"Select an event in Dorico (e.g. to show the user). Note: selection changes are undo steps in Dorico.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids"],"title":"select_eventsArguments","type":"object"},"name":"select_events"},{"description":"Start playback (from a bar, or from the playhead).","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"}},"title":"playArguments","type":"object"},"name":"play"},{"description":"Stop playback.","inputSchema":{"properties":{},"title":"stopArguments","type":"object"},"name":"stop"},{"description":"Undo the last `count` edits in Dorico (every tool write is one step). Selection steps left by this server's\ntempo reads are skipped; other selection changes (by hand, select_events) count as steps.","inputSchema":{"properties":{"count":{"default":1,"title":"Count","type":"integer"}},"title":"undoArguments","type":"object"},"name":"undo"},{"description":"Redo `count` steps. Only possible right after undo: every MCP read runs a Dorico script, and any\nscript clears Dorico's redo stack (verified).","inputSchema":{"properties":{"count":{"default":1,"title":"Count","type":"integer"}},"title":"redoArguments","type":"object"},"name":"redo"}],"ttlMs":0}}}
{"at":"2026-11-23T02:02:05.027Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:02:05.946Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Dorico MCP server: read and write a live Dorico 6 score by conversation.\n\nPositions: every tool takes either `bar` (1-based) + `beat` (offset in crotchets from the bar start, e.g. \"0\",\n\"1\", \"3/2\") or an absolute `pos` in crotchets from the flow start. Voices are voice-stream ids from\nget_score_overview (e.g. piano: 2 = right hand, 4 = left hand). Event ids come from read_music/read_markings.\nEvery write is one undo step, verified by reading the score back; a failed check is undone automatically.\n\nStart with get_score_overview, then get_bar_map and read_music. Write with add_notes and the add_*/set_* tools.\nUse screenshot to look at the result. list_capabilities shows what is confirmed live and what is experimental.\nDorico's API cannot read: lyrics, fp and sffz (sffz reads as sfz), tonic/mode of keys (only the signature),\ntitle/composer; and per-note properties in voices that contain trills, ornaments, arpeggios, techniques or glissandi.\nTempo values are read by selecting the tempo marking; undo skips those selection steps.\nUndo works any time; redo only directly after undo (any read clears Dorico's redo stack).\n","protocolVersion":"2025-11-25","serverInfo":{"name":"doricomcp","title":"doricomcp","version":"0.1.1","websiteUrl":"https://github.com/mka142/doricomcp"}}}}
{"at":"2026-11-23T02:02:05.946Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:02:05.946Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:02:05.949Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Live Dorico status (mode, selection, note input, undo availability) from Remote Control.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"dorico_statusArguments","type":"object"},"name":"dorico_status"},{"description":"The confirmation matrix: every capability, its mechanism and whether the live harness confirmed it.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"list_capabilitiesArguments","type":"object"},"name":"list_capabilities","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_capabilitiesOutput","type":"object"}},{"description":"Search Dorico's 1,200 commands (regex on name/display name) with their parameters and enum values.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"filter":{"default":"","title":"Filter","type":"string"},"limit":{"default":40,"title":"Limit","type":"integer"}},"title":"describe_commandsArguments","type":"object"},"name":"describe_commands","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"describe_commandsOutput","type":"object"}},{"description":"Exact accepted values of a Dorico enum type (or regex over enum type names).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"describe_enumsArguments","type":"object"},"name":"describe_enums"},{"description":"Type, display name and enum values of an event property (e.g. kNoteVelocity, kEventColour).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"describe_propertyArguments","type":"object"},"name":"describe_property","outputSchema":{"properties":{"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"required":["result"],"title":"describe_propertyOutput","type":"object"}},{"description":"Library entities (ids + names), live from Dorico: kInstrumentCollection, kClefCollection,\nkPlayingTechniqueAppearanceCollection, kOrnamentCollection, kTempoPresetCollection, kParagraphStyleCollection...\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"collection":{"title":"Collection","type":"string"},"filter":{"default":"","title":"Filter","type":"string"}},"required":["collection"],"title":"list_libraryArguments","type":"object"},"name":"list_library","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_libraryOutput","type":"object"}},{"description":"Escape hatch: run any catalogued Dorico command (\"Namespace.Command?Param=value&...\"), validated\nagainst the catalogue. With select_event_id the event is selected first in the same undo step.","inputSchema":{"properties":{"command":{"title":"Command","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"select_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Select Event Id"}},"required":["command"],"title":"run_commandArguments","type":"object"},"name":"run_command"},{"description":"A picture of Dorico's score window, to check engraving by eye. bar: scroll there first; zoom: view zoom in\npercent for the picture (e.g. 200 to read dynamics and small markings), restored afterwards.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"flow":{"default":0,"title":"Flow","type":"integer"},"zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Zoom"}},"title":"screenshotArguments","type":"object"},"name":"screenshot"},{"description":"Dorico's open dialogs (every window other than a project window): title, modal, the texts shown and the\ncontrols (role, title or label, value, enabled, path). A modal dialog blocks all commands until it is answered\nwith dialog_click / dialog_set. Needs Accessibility permission for the app running this server.","inputSchema":{"properties":{},"title":"list_dialogsArguments","type":"object"},"name":"list_dialogs"},{"description":"Press a control in a Dorico dialog: a button (\"OK\", \"Cancel\", \"Apply\", \"Close\"), checkbox, radio button or\ntab, by its title, the label before it, or its path from list_dialogs. dialog: its title, if several are open.","inputSchema":{"properties":{"control":{"title":"Control","type":"string"},"dialog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dialog"}},"required":["control"],"title":"dialog_clickArguments","type":"object"},"name":"dialog_click"},{"description":"Set a control in a Dorico dialog: a checkbox or radio button to true/false, a text field to text, a pop-up\nor combo box to one of its items (by name). control: its title, the label before it, or its path.","inputSchema":{"properties":{"control":{"title":"Control","type":"string"},"dialog":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dialog"},"value":{"title":"Value","type":"string"}},"required":["control","value"],"title":"dialog_setArguments","type":"object"},"name":"dialog_set"},{"description":"Forget cached reads (time signatures, dynamics, keys, structure); use after editing in Dorico by hand.\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"refreshArguments","type":"object"},"name":"refresh"},{"description":"Players, instruments, layouts and flows; per flow its streams and voices (voice-stream id -> instrument,\nstaff index, voice index). Use the voice ids for read_music/add_notes.","inputSchema":{"properties":{},"title":"get_score_overviewArguments","type":"object"},"name":"get_score_overview"},{"description":"Bar numbers <-> positions, time signatures (read by Dorico's own equality API, cached) and optionally key\nsignatures (include_keys: a letter-entry probe into an empty span; it plays 7 audition notes).","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"include_keys":{"default":false,"title":"Include Keys","type":"boolean"}},"title":"get_bar_mapArguments","type":"object"},"name":"get_bar_map"},{"description":"Notes, chords, rests (explicit and implicit), grace notes, tuplets, slurs and articulations per voice,\nwith exact positions, durations, spelled pitches, MIDI numbers and event ids. Range: bars (inclusive)\nor positions [from_pos, to_pos).\ndetail=\"compact\": per voice and bar the notes in add_notes syntax plus their ids (about a tenth of the size; use it\nfor long ranges or many voices). detail=\"grid\": one row per onset of any voice (or every grid_step crotchets,\ne.g. \"1/2\") with what each voice sounds, for checking verticals.","inputSchema":{"properties":{"detail":{"default":"full","title":"Detail","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"grid_step":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Grid Step"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"title":"read_musicArguments","type":"object"},"name":"read_music"},{"description":"Dynamics (levels incl. sfz/rfz/fz, hairpins), slurs, clefs, ottavas, text, tempo (text, bpm), holds, rehearsal\nmarks, repeats, breaks, playing techniques (name), ornaments, time/key signatures in a range. Each row says whether its content is readable.\nA dynamic group lists its parts in order, each with its own position (bar, beat): a level (p, f...) or a hairpin\n(cresc/dim, length, end); \"sub\" identifies a hairpin part for set_property.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"}},"title":"read_markingsArguments","type":"object"},"name":"read_markings"},{"description":"What is in force at a point: time signature, key signature, clef, dynamic level (and a hairpin running\nthrough the point), ottava, the last tempo marking (text, bpm), and the notes sounding in the voice.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"include_key":{"default":false,"title":"Include Key","type":"boolean"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Voice"}},"title":"read_context_atArguments","type":"object"},"name":"read_context_at"},{"description":"Voice-leading check of the score: parallel and contrary fifths/octaves/unisons, hidden fifths/octaves in the\nouter voices, crossings, spacing over an octave between upper voices, leaps over max_leap semitones and tritone\nleaps. voices: from highest to lowest (default: ordered by average pitch). chords (optional harmonic plan,\n\"bar[:beat] symbol, ...\", e.g. \"28 D, 28:2 A7, 29 Bm/F#\") adds doubled thirds (major chords), doubled sevenths,\ndoubled leading tone (needs key, e.g. \"D\" or \"Bm\"), missing thirds, non-chord tones and wrong bass notes.\nA voice holding a chord counts by its top note.","inputSchema":{"properties":{"chords":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Chords"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1,"title":"From Bar"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Key"},"max_leap":{"default":12,"title":"Max Leap","type":"integer"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"title":"check_voice_leadingArguments","type":"object"},"name":"check_voice_leading"},{"description":"What changed in a flow: without since, take a snapshot and return its token; with since=<token>, list the\nevents added, removed and changed since then, each marked by \"server\" (written through these tools) or \"Dorico\"\n(edited in Dorico by hand), and a new token. Changes inside dynamic groups (levels) are not seen.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"score_changesArguments","type":"object"},"name":"score_changes"},{"description":"The current selection in Dorico (event type and, if available, its properties).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{},"title":"get_selectionArguments","type":"object"},"name":"get_selection"},{"description":"House-style options: kind kEngraving (per score), kNotation (per flow: flow_id), kLayout (per layout: layout_id).\n[READ-ONLY: not yet confirmed by the live harness]","inputSchema":{"properties":{"filter":{"default":"","title":"Filter","type":"string"},"flow_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Flow Id"},"kind":{"default":"kLayout","title":"Kind","type":"string"},"layout_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"title":"Layout Id"}},"title":"get_optionsArguments","type":"object"},"name":"get_options","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"get_optionsOutput","type":"object"}},{"description":"Write notes, chords and rests one after another from a position.\nnotes: space-separated items \"PITCHES:DURATION\"; chords join pitches with \"+\"; \"r\" is a rest; a missing\nduration repeats the previous one. Durations: crotchets (1, 3/2, 1/2) or w h q e s t (+ dots, e.g. \"q.\").\nPitches: C4 = middle C, F#5, Bb3. Example: \"Eb4+G4+C5:h. G4:e Eb5:q. C5:s r:q\".\nreplace=True first clears the notes and rests of the span (slurs, text and other markings there stay);\notherwise notes are added (chords merge with existing notes).","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"replace":{"default":false,"title":"Replace","type":"boolean"},"voice":{"title":"Voice","type":"integer"}},"required":["notes","voice"],"title":"add_notesArguments","type":"object"},"name":"add_notes"},{"description":"Delete the notes, rests, grace notes and tuplets of a voice in a range (bars inclusive, or positions\n[from_pos, to_pos)); slurs, text and other markings in the voice stay unless include_markings=True.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"include_markings":{"default":false,"title":"Include Markings","type":"boolean"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice"],"title":"delete_rangeArguments","type":"object"},"name":"delete_range"},{"description":"Delete events by id: notes, rests or markings (dynamics, hairpins, slurs, text, clefs, octave lines...).\nIds come from read_music / read_markings.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids"],"title":"delete_eventsArguments","type":"object"},"name":"delete_events"},{"description":"Change one note's pitch and spelling (e.g. \"F#4\", \"Ebb5\") in place: it keeps its id, rhythm, slurs and\narticulations.","inputSchema":{"properties":{"event_id":{"title":"Event Id","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"pitch":{"title":"Pitch","type":"string"}},"required":["event_id","pitch"],"title":"set_pitchArguments","type":"object"},"name":"set_pitch"},{"description":"Change a note's or rest's duration (crotchets or w h q e s t with dots).","inputSchema":{"properties":{"duration":{"title":"Duration","type":"string"},"event_id":{"title":"Event Id","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_id","duration"],"title":"set_durationArguments","type":"object"},"name":"set_duration"},{"description":"Apply an edit to notes: pitch_up/pitch_down (diatonic steps x count), chromatic_up/down, octave_up/down,\nrespell_above/below, double_duration, halve_duration, tie (to the next note of the same pitch), delete;\nremove_rests on rest ids (Dorico's Remove Rests: the voice shows a gap there, e.g. a divisi line that pauses).","inputSchema":{"properties":{"action":{"title":"Action","type":"string"},"count":{"default":1,"title":"Count","type":"integer"},"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids","action"],"title":"edit_notesArguments","type":"object"},"name":"edit_notes"},{"description":"Add a note at an interval to each given note, making a chord: \"3\" (third above), \"-3\", \"maj3\", \"min6 below\", \"p5\", \"octave\".","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"interval":{"title":"Interval","type":"string"}},"required":["event_ids","interval"],"title":"add_intervalArguments","type":"object"},"name":"add_interval"},{"description":"Add a grace note before the note at the given position (value: notated length, default quaver).","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pitch":{"title":"Pitch","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"default":"e","title":"Value","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["pitch","voice"],"title":"add_grace_noteArguments","type":"object"},"name":"add_grace_note"},{"description":"Copy (or move) notes and rests of a range to another place or voice/staff (markings are not copied).","inputSchema":{"properties":{"dest_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Dest Bar"},"dest_beat":{"default":"0","title":"Dest Beat","type":"string"},"dest_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Dest Pos"},"dest_voice":{"title":"Dest Voice","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"move":{"default":false,"title":"Move","type":"boolean"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice","dest_voice"],"title":"copy_rangeArguments","type":"object"},"name":"copy_range"},{"description":"A tuplet typed with Dorico's note input, overwriting what is there: ratio \"3:2\", \"5:4\"; unit = the\ntuplet's note value (e, q, s, h); notes in add_notes syntax with notated values, e.g. \"C5:e D5 E5\" or\n\"Eb4+G4:q B4 D5\". Accidentals are always explicit (C#5, Ab4); plain letters mean naturals.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"ratio":{"title":"Ratio","type":"string"},"unit":{"title":"Unit","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["ratio","unit","notes","voice"],"title":"add_tupletArguments","type":"object"},"name":"add_tuplet"},{"description":"Exchange the notes and rests of two voices in a range (e.g. divisi lines trading places), one undo step.\nNotes are re-created with their pitch and rhythm (new ids); slurs, text and markings stay in their voice.","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"},"from_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"From Pos"},"other_voice":{"title":"Other Voice","type":"integer"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["voice","other_voice"],"title":"swap_voicesArguments","type":"object"},"name":"swap_voices"},{"description":"Start a new voice on the same staff as `voice` (e.g. a second, stems-down voice), typing `notes`\n(add_notes syntax, plain or single-dotted values). Returns the new voice id for later add_notes calls.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"notes":{"title":"Notes","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["notes","voice"],"title":"add_voiceArguments","type":"object"},"name":"add_voice"},{"description":"staccato, staccatissimo, tenuto, accent, marcato, stress, unstress, staccato_tenuto on notes.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"}},"required":["event_ids","kind"],"title":"add_articulationArguments","type":"object"},"name":"add_articulation"},{"description":"A line from one note to another in the same voice: slur, cresc, dim, messa_di_voce (hairpins),\n8va, 8vb, 15ma, 15mb (octave lines), glissando. Only that voice gets it, even with other voices on the staff.\nspans: several [start_event_id, end_event_id] pairs in one call (slurs: one undo step), e.g. a slur over every\npair of quavers. Hairpins end at the end of the end note; for exact positions use add_hairpin.","inputSchema":{"properties":{"end_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"End Event Id"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"spans":{"anyOf":[{"items":{"items":{"type":"integer"},"type":"array"},"type":"array"},{"type":"null"}],"default":null,"title":"Spans"},"start_event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Start Event Id"}},"required":["kind"],"title":"add_spanArguments","type":"object"},"name":"add_span"},{"description":"A hairpin (cresc, dim, messa_di_voce) from one position to another, e.g. bar 33 beat 0 to bar 33 beat 3/2,\nwherever notes start (also inside a held note). voices: put the same hairpin on several instruments (one voice\neach), e.g. the whole string section. A hairpin starting at a dynamic joins its group (p<), reported as\nmerged_into. Returns the direction, positions and drawn length.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"to_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"To Bar"},"to_beat":{"default":"0","title":"To Beat","type":"string"},"to_pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"To Pos"},"voice":{"title":"Voice","type":"integer"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"required":["kind","voice"],"title":"add_hairpinArguments","type":"object"},"name":"add_hairpin"},{"description":"An immediate dynamic (p, pp, mp, mf, f, ff, sfz, fp, ...) on the voice's instrument at a position, also\nwhere no note starts (inside a held note) or where a hairpin ends. voices: the same on several instruments.\nat: more dynamics in the same call, e.g. [{\"value\": \"f\", \"bar\": 34}, {\"value\": \"p\", \"bar\": 36, \"beat\": \"2\"}]\n(each takes bar + beat or pos). One undo step; returns only the dynamics created.","inputSchema":{"properties":{"at":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"At"},"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"title":"Value","type":"string"},"voice":{"title":"Voice","type":"integer"},"voices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Voices"}},"required":["value","voice"],"title":"add_dynamicArguments","type":"object"},"name":"add_dynamic"},{"description":"kind=ornament (value tr, mordent, inv, turn), hold (fermata, breath, caesura...),\nplaying_technique (value: a name like pizz., arco, con sord., sul pont., ord., or a library id like pta.pizzText),\ntie, articulation (value staccato...).","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"},"value":{"default":"","title":"Value","type":"string"}},"required":["event_ids","kind"],"title":"add_note_markingArguments","type":"object"},"name":"add_note_marking"},{"description":"Staff text (e.g. \"dolce\", \"espress.\") attached to a voice at a position.","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"text":{"title":"Text","type":"string"},"voice":{"title":"Voice","type":"integer"}},"required":["text","voice"],"title":"add_textArguments","type":"object"},"name":"add_text"},{"description":"A clef change on the voice's staff: clef.treble, clef.bass, clef.alto, clef.tenor, clef.treble8ba ...","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"clef":{"title":"Clef","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"voice":{"title":"Voice","type":"integer"}},"required":["clef","voice"],"title":"add_clefArguments","type":"object"},"name":"add_clef"},{"description":"A tempo marking: \"q=120\", \"Allegro q=132\", \"h.=60\", \"rit.\", \"a tempo\".","inputSchema":{"properties":{"bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Bar"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pos"},"value":{"title":"Value","type":"string"}},"required":["value"],"title":"set_tempoArguments","type":"object"},"name":"set_tempo"},{"description":"Time signature from a bar on: 3/4, 6/8, 2+3/8, c, cut. Single n/d values are read back to confirm.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"set_time_signatureArguments","type":"object"},"name":"set_time_signature"},{"description":"Key signature from a bar on: \"2#\", \"3b\", \"0\", or names like \"Eb\", \"F#m\", \"c minor\".","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"set_key_signatureArguments","type":"object"},"name":"set_key_signature"},{"description":"Barline at the start of a bar: \"||\" double, \"|:\" start repeat, \":|\" end repeat, \":|:\", \"|||\" final, \":\" dashed.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"title":"Kind","type":"string"}},"required":["kind","bar"],"title":"add_barlineArguments","type":"object"},"name":"add_barline"},{"description":"segno, coda, fine, \"to coda\", \"D.C.\", \"D.C. al Fine\", \"D.C. al Coda\", \"D.S. al Fine\", \"D.S. al Coda\".","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"beat":{"default":"0","title":"Beat","type":"string"},"flow":{"default":0,"title":"Flow","type":"integer"},"value":{"title":"Value","type":"string"}},"required":["value","bar"],"title":"add_repeat_markerArguments","type":"object"},"name":"add_repeat_marker"},{"description":"A rehearsal mark (next letter in sequence) at the start of a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["bar"],"title":"add_rehearsal_markArguments","type":"object"},"name":"add_rehearsal_mark"},{"description":"Force a system or frame (page) break before a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"},"kind":{"default":"system","title":"Kind","type":"string"}},"required":["bar"],"title":"add_breakArguments","type":"object"},"name":"add_break"},{"description":"Set any event property (all layouts), e.g. kNoteVelocity=100, kEventColour=#ffff0000, kEventScale=kCue,\nkNoteForcedVoiceDirection... Omit value to reset to default. See describe_property.\nkDynamicGradualChangeDuration (hairpin length in crotchets) also works on a hairpin joined to a dynamic (p<);\npart: the hairpin's \"sub\" from read_markings when its group holds several hairpins (> <).","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"},"name":{"title":"Name","type":"string"},"part":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Part"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Value"}},"required":["event_ids","name"],"title":"set_propertyArguments","type":"object"},"name":"set_property"},{"description":"Set a house-style option (paths and values from get_options). kind: kEngraving, kNotation (flow_ids),\nkLayout (layout_ids). Written via Dorico's own commands (the setoptions message ignores layout ids).","inputSchema":{"properties":{"flow_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Flow Ids"},"kind":{"title":"Kind","type":"string"},"layout_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Layout Ids"},"path":{"title":"Path","type":"string"},"value":{"title":"Value","type":"string"}},"required":["kind","path","value"],"title":"set_optionArguments","type":"object"},"name":"set_option"},{"description":"Add a solo (or section) player holding an instrument from the library, e.g. instrument.strings.violin,\ninstrument.wind.flute (list_library kInstrumentCollection).","inputSchema":{"properties":{"instrument":{"title":"Instrument","type":"string"},"section":{"default":false,"title":"Section","type":"boolean"}},"required":["instrument"],"title":"add_playerArguments","type":"object"},"name":"add_player"},{"description":"Give an existing player (index in get_score_overview players) an extra instrument (doubling).","inputSchema":{"properties":{"instrument":{"title":"Instrument","type":"string"},"player_id":{"title":"Player Id","type":"integer"}},"required":["player_id","instrument"],"title":"add_instrumentArguments","type":"object"},"name":"add_instrument"},{"description":"Rename a player (index in get_score_overview players).","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"player_id":{"title":"Player Id","type":"integer"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Short Name"}},"required":["player_id","name"],"title":"rename_playerArguments","type":"object"},"name":"rename_player"},{"description":"Add a new flow (movement) at the end of the project, with all players.","inputSchema":{"properties":{},"title":"add_flowArguments","type":"object"},"name":"add_flow"},{"description":"Rename a flow (ids from get_score_overview flows).","inputSchema":{"properties":{"flow_id":{"title":"Flow Id","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["flow_id","name"],"title":"rename_flowArguments","type":"object"},"name":"rename_flow"},{"description":"Delete a flow and all its music (one undo step; undo restores it). Dorico's \"all music ... will also be\ndeleted\" confirmation is answered OK. The last flow cannot be deleted.","inputSchema":{"properties":{"flow_id":{"title":"Flow Id","type":"integer"}},"required":["flow_id"],"title":"delete_flowArguments","type":"object"},"name":"delete_flow"},{"description":"Remove an instrument and all its music (one undo step; undo restores it). Instrument ids are in\nget_score_overview players. Dorico's \"will also delete all its music\" confirmation is answered OK.","inputSchema":{"properties":{"instrument_id":{"title":"Instrument Id","type":"integer"}},"required":["instrument_id"],"title":"remove_instrumentArguments","type":"object"},"name":"remove_instrument"},{"description":"Add a custom score layout (optionally named). Part layouts are created automatically with players.","inputSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"}},"title":"add_layoutArguments","type":"object"},"name":"add_layout"},{"description":"Rename a layout (ids from get_score_overview layouts).","inputSchema":{"properties":{"layout_id":{"title":"Layout Id","type":"integer"},"name":{"title":"Name","type":"string"}},"required":["layout_id","name"],"title":"rename_layoutArguments","type":"object"},"name":"rename_layout"},{"description":"Include or exclude flows in a layout (Dorico does not expose a layout's flows for read-back).","inputSchema":{"properties":{"flow_ids":{"items":{"type":"integer"},"title":"Flow Ids","type":"array"},"include":{"default":true,"title":"Include","type":"boolean"},"layout_id":{"title":"Layout Id","type":"integer"}},"required":["layout_id","flow_ids"],"title":"layout_flowsArguments","type":"object"},"name":"layout_flows"},{"description":"Instrument order template, e.g. instrumentscoreorder.orchestral, instrumentscoreorder.windband,\ninstrumentscoreorder.choral (list_library kInstrumentScoreOrderCollection).","inputSchema":{"properties":{"order":{"title":"Order","type":"string"}},"required":["order"],"title":"set_score_orderArguments","type":"object"},"name":"set_score_order"},{"description":"Scroll Dorico's view to a bar.","inputSchema":{"properties":{"bar":{"title":"Bar","type":"integer"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["bar"],"title":"go_toArguments","type":"object"},"name":"go_to"},{"description":"Select an event in Dorico (e.g. to show the user). Note: selection changes are undo steps in Dorico.","inputSchema":{"properties":{"event_ids":{"items":{"type":"integer"},"title":"Event Ids","type":"array"},"flow":{"default":0,"title":"Flow","type":"integer"}},"required":["event_ids"],"title":"select_eventsArguments","type":"object"},"name":"select_events"},{"description":"Start playback (from a bar, or from the playhead).","inputSchema":{"properties":{"flow":{"default":0,"title":"Flow","type":"integer"},"from_bar":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"From Bar"}},"title":"playArguments","type":"object"},"name":"play"},{"description":"Stop playback.","inputSchema":{"properties":{},"title":"stopArguments","type":"object"},"name":"stop"},{"description":"Undo the last `count` edits in Dorico (every tool write is one step). Selection steps left by this server's\ntempo reads are skipped; other selection changes (by hand, select_events) count as steps.","inputSchema":{"properties":{"count":{"default":1,"title":"Count","type":"integer"}},"title":"undoArguments","type":"object"},"name":"undo"},{"description":"Redo `count` steps. Only possible right after undo: every MCP read runs a Dorico script, and any\nscript clears Dorico's redo stack (verified).","inputSchema":{"properties":{"count":{"default":1,"title":"Count","type":"integer"}},"title":"redoArguments","type":"object"},"name":"redo"}]}}}
