get_asset_content
readSince v1.0Read what's inside an asset's file. PDFs come back as extracted text; text, JSON, CSV, XML and Markdown come back as-is; PNG, JPEG, GIF and WEBP come back as an image the AI can look at. This is how an AI assistant reads a requirements document, a datasheet or a spec you've attached to the model. Use list_assets first to find the asset's id.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
locale | String | — | Read the file variant for this language (for example 'de'). Falls back to the default file when there is no variant. | |
asset_id | String | ✓ | The asset whose file you want to read. Use list_assets to find it — assets are not returned by search_nodes. | |
max_chars | Number | — | 50000 | How many characters of text to return at most. Ignored for images. |
Example Request
{"asset_id": "uuid-1", "max_chars": 20000}Example Response
{"asset_id": "uuid-1", "filename": "requirements.pdf", "content_type": "application/pdf", "kind": "text", "truncated": false, "text": "1. Scope\n\nThe system shall ..."}This content was written collaboratively with AI.