Get Topic
get_topicGet a single topic from the portal with full content. Returns topic metadata, body source and compiled content. The 'body' field contains source HTML (editable, may contain custom tags like ch:var/ that should be typically preserved unless surrounding/related content is removed), while 'md'/'html' is the compiled readable output. Use format='md' for readable content, format='html' for raw HTML output. MUST use isReturnBody=true and use body as topic content if the retrieved data is supposed to be written back to the portal to prevent HTML formatting loss. NEVER use compiled content from the md/html fields as topic content for editing to prevent data loss. Note: Auto-topics (isAutoTopic=true) are read-only and cannot be updated, deleted or used as new parents for TOC update operations. Translation project topics can only have workflow fields (status, assignee, owner) updated. Publication topics are read-only (publications are auto-generated project copies).
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": {
"projectId": "<projectId>",
"topicId": "<topicId>"
},
"name": "get_topic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'html' or 'md'. Default is 'md' which returns readable markdown. | md |
| topicId | Yes | Topic ID/slug (e.g., 'getting-started') | |
| projectId | Yes | Project or publication ID (e.g., 'my-documentation') | |
| isReturnBody | No | Returns the topic body markup when (used for topic editing or checking the exact source), the default is false. |