mort_format
Formats Mort source code using the official mortc fmt formatter and returns the formatted text, helping agents normalize code before review or execution.
Instructions
Format Mort source with the official formatter (mortc fmt) and
return the formatted text.
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": {
"source": "<source>"
},
"name": "mort_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |