prune
Strip comments and empty lines from text to reduce token count before sending to an LLM. Returns the pruned text and character metrics. Requires a valid API key (Bearer token); billing is per input character — insufficient balance returns HTTP 402. For format conversion use convert, for generating llms.txt use generate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Text to prune (1 char min, 10 MiB max). | |
| comment_prefix | No | Optional. Explicit comment-line prefix to strip outside code fences (e.g. '//' for C-style code). Omit for format-aware pruning: markdown '#' headings are preserved (v101 #12 note), no line stripping on plain text. Max 64 bytes, no control chars. | |
| remove_empty_lines | No | If true, empty lines outside code fences are removed. |