Overview
- Category
- Text Tools
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/markdown-previewer
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/markdown-previewer/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
markdown· string · required- Enter Markdown to preview.
{
"type": "object",
"properties": {
"markdown": {
"type": "string",
"description": "Enter Markdown to preview."
}
},
"required": [
"markdown"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
html· string- Sanitized HTML preview produced by the calculation.
word_count· number- Markdown word count produced by the calculation.
heading_count· number- Heading count produced by the calculation.
link_count· number- Link count produced by the calculation.
{
"type": "object",
"properties": {
"html": {
"type": "string",
"description": "Sanitized HTML preview produced by the calculation."
},
"word_count": {
"type": "number",
"description": "Markdown word count produced by the calculation."
},
"heading_count": {
"type": "number",
"description": "Heading count produced by the calculation."
},
"link_count": {
"type": "number",
"description": "Link count produced by the calculation."
}
},
"additionalProperties": false
}
Markdown Previewer example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/markdown-previewer/execute" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# UtilityPages\n\nFast, private **browser tools**.\n\n- Calculators\n- Converters\n- Reference"
}'
{
"ok": true,
"data": {
"slug": "markdown-previewer",
"result": {
"values": {
"html": "<h1>UtilityPages</h1>\n<p>Fast, private <strong>browser tools</strong>.</p>\n<ul>\n<li>Calculators</li>\n<li>Converters</li>\n<li>Reference</li>\n</ul>",
"word_count": 8,
"heading_count": 1,
"link_count": 0
},
"display": {
"display": "<h1>UtilityPages</h1>\n<p>Fast, private <strong>browser tools</strong>.</p>\n<ul>\n<li>Calculators</li>\n<li>Converters</li>\n<li>Reference</li>\n</ul>"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.