Denkwerk
page cited summary
Extracts the text layer of every PDF page with pdfjs-dist (or takes pages as text, or text split by form feeds), removes lines repeated on most pages (headers, footers), joins hyphenated line breaks and splits sentences with Intl.Segmenter plus abbreviation rules. Sentences of 5 to 80 words are ranked with LexRank (Erkan and Radev 2004: TF-IDF cosine graph, damping 0.85); an optional query boosts sentences containing its terms, and near-duplicates (cosine above 0.6) of already chosen.
POST https://denk.halowerk.com/v1/page-cited-summaryInputs
| Field | Type | Required | Description |
|---|---|---|---|
| pdf_base64 | string | No | PDF file as base64 (max. 15 MB). |
| pages | array | No | |
| text | string | No | Text with pages separated by form feed (\f), as produced by pdftotext. |
| sentences | integer | No | |
| query | string | No | Optional focus terms. |
| language | string | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"pdf_base64": {
"type": "string",
"maxLength": 20000000,
"description": "PDF file as base64 (max. 15 MB)."
},
"pages": {
"type": "array",
"minItems": 1,
"maxItems": 2000,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"page": {
"type": [
"string",
"integer"
],
"description": "Page label; default position."
},
"text": {
"type": "string",
"maxLength": 200000
}
}
}
},
"text": {
"type": "string",
"maxLength": 5000000,
"description": "Text with pages separated by form feed (\\f), as produced by pdftotext."
},
"sentences": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 6
},
"query": {
"type": "string",
"maxLength": 300,
"description": "Optional focus terms."
},
"language": {
"type": "string",
"enum": [
"en",
"de"
],
"default": "en"
}
}
}Published input example
{
"pages": [
{
"page": 1,
"text": "The pilot started in March. The battery reduced peak load by 23 percent."
},
{
"page": 2,
"text": "Costs fell accordingly."
}
],
"sentences": 2
}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