Convert pasted text or ChordPro
jj_convert_textConverts pasted plain text or ChordPro lyrics and chords into a selected format via the Jam Jam API, returning embedded text or a file path for PDF, MIDI, and similar outputs.
Instructions
Sends plain text or ChordPro (pasted lyrics and chords, no file) to the Jam Jam API, waits for the conversion to finish, and returns the result: embedded text for small text formats, or a local file path for binary formats (PDF, MIDI...). Call jj_list_formats first to find valid "output" ids. Consumes one unit of the conversion quota.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"output": "<output>"
},
"name": "jj_convert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Plain text or ChordPro to convert (up to 262144 characters). | |
| output | Yes | Output format id from jj_list_formats (e.g. "pdf-songbook", "midi", "songbook"). | |
| deliver | No | "download" (default) returns the artifact; "carnet" saves it to the caller's Jam Jam notebook instead (requires an account). | |
| options | No | Extra per-format options, see jj_list_formats for the target format. | |
| maxWaitMs | No | Maximum time to wait for the job to finish, in milliseconds (default 120000, hard cap 600000). If exceeded, the job keeps running server-side; poll it with jj_get_job. | |
| inputFormat | No | Input format id from jj_list_formats (e.g. "chordpro", "text-lyrics"). Omit to let the server detect it. |