Denkwerk
chunk smart
Parses the document into blocks (Markdown via marked, HTML via a block-level walker that drops scripts and styles, plain text by blank lines), keeps a heading path for every block and never mixes sections in one chunk. Blocks are packed up to max_tokens (OpenAI encoding via js-tiktoken); oversized blocks are split at sentence boundaries (Unicode segmentation plus CLDR abbreviation list, e.g. "z. B.", "Dr."), oversized sentences at word boundaries. Overlap repeats whole trailing sentences of.
POST https://denk.halowerk.com/v1/chunk-smartInputs
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | |
| format | string | No | |
| max_tokens | integer | No | |
| overlap_tokens | integer | No | |
| encoding | string | No | OpenAI encoding used for token counts. |
| include_heading_path | boolean | No | Prefix each chunk text with "A > B" breadcrumbs (counted in tokens). |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 500000
},
"format": {
"type": "string",
"enum": [
"auto",
"markdown",
"html",
"text"
],
"default": "auto"
},
"max_tokens": {
"type": "integer",
"minimum": 32,
"maximum": 8192,
"default": 512
},
"overlap_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 2048,
"default": 64
},
"encoding": {
"type": "string",
"enum": [
"cl100k_base",
"o200k_base"
],
"default": "cl100k_base",
"description": "OpenAI encoding used for token counts."
},
"include_heading_path": {
"type": "boolean",
"default": false,
"description": "Prefix each chunk text with \"A > B\" breadcrumbs (counted in tokens)."
}
}
}Published input example
{
"text": "# Handbuch\n\n## Installation\n\nPaket laden. Danach starten.\n\n## Betrieb\n\nDer Dienst läuft im Hintergrund.",
"max_tokens": 64,
"overlap_tokens": 16
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Denkwerk0.003 USDC
agent card generate
POSThttps://denk.halowerk.com/v1/agent-card-generateBuilds an Agent2Agent protocol Agent Card with protocolVersion, name, description, url, version, capabilities, default input/output modes and skills. Skills come from the supplied list or are derived from OpenAPI operations (operationId, su
- Denkwerk0.003 USDC
agent permission diff
POSThttps://denk.halowerk.com/v1/agent-permission-diffTakes the tool names (with optional descriptions) and permission scopes of an agent before and after a change and reports added and removed tools and scopes, classifies new capabilities by risk (payments, sending messages, deleting or writi
- Denkwerk0.003 USDC
annotation guide draft
POSThttps://denk.halowerk.com/v1/annotation-guide-draftTakes example texts per label and derives, without a language model, the most distinguishing terms per label (TF-IDF contrast against the other labels), representative examples, cross-label example pairs with high similarity that need a wri