zim_get_section
Fetch a specific article section from a ZIM knowledge base by section ID, optionally including subsections, to retrieve only the needed content.
Instructions
Fetch one named section of an article — by section_id (from the
TOC), with optional subsection inclusion.
EXTRACT the section id before calling — zim_get(view="toc") lists
them if the caller didn't supply one.
ALIASES: callers may say "section of ", "show me the section", " section ". Route through THIS tool.
PARAMETERS:
zim_file_path REQUIRED. The archive containing the article.
entry_path REQUIRED. The article whose section to fetch.
section_id REQUIRED. The TOC id (e.g. "History").
max_chars Optional char cap on the section body.
include_subsections Default True: include nested subsections.
False: stop at the next heading of any level.
compact Default True: oversized tables become
placeholders and link markup is stripped (the
zim_get compact=True shape). False: raw body
with full tables and links.
compact_budget Inert — never forwarded. Use max_chars to cap
this tool; only zim_query honors this one.
RESPONSE: GetSectionResponse — section body markdown, metadata, and any nested subsections.
ERRORS:
Unknown section_id → ToolErrorPayload with available_section_ids
(not a hint) and closest_match. Missing entry → entry_not_found.
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": {
"zim_file_path": "<zim_file_path>",
"entry_path": "<entry_path>",
"section_id": "<section_id>"
},
"name": "zim_get_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compact | No | ||
| max_chars | No | ||
| entry_path | Yes | ||
| section_id | Yes | ||
| zim_file_path | Yes | ||
| compact_budget | No | ||
| include_subsections | No |