Convert or format a document
convertWrite a document as JSON, YAML or Markdown in the canonical key order and layout. Use the same format to format a file (as skopos fmt does). Markdown is the readable agent file (specification section 10).
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": {
"document": "<document>",
"to": "<to>"
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The format to write. | |
| format | No | The format of the text. Default: from `filename`, else detected (JSON starts with '{'; Markdown has a '# ' title line). | |
| document | Yes | The whole document: OpenSkopos JSON, YAML or Markdown text, as in the file. | |
| filename | No | The name of the file, for example INTENT.md or app.skopos.yaml. Sets the format, and the kind of a Markdown file without one. |