get_techdocs
Retrieve a Backstage entity's TechDocs documentation as plain text, syncing the render when docs are stale or a force sync is requested; the entity needs the backstage.io/techdocs-ref annotation.
Instructions
Retrieve the TechDocs documentation for a Backstage entity. Triggers a render sync if needed, then returns the documentation as plain text. The entity must have a 'backstage.io/techdocs-ref' annotation configured.
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": {
"entityRef": "<entityRef>",
"forceSync": "<forceSync>"
},
"name": "get_techdocs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityRef | Yes | Entity reference, e.g. 'component:default/payment-service'. Use get_entity first to confirm the entity has techdocs configured (check for 'backstage.io/techdocs-ref' annotation). | |
| forceSync | Yes | Force a TechDocs re-render before fetching. Use when docs may be stale. |