Liveblocks icon

Liveblocks

Call the Liveblocks REST API (rooms, comments, feeds, Yjs, AI, and more)

AI Knowledge → Get File Markdown

AI-generated

Summary

Retrieve the markdown content of a specific file knowledge source associated with a given AI copilot.

Inputs

  • Copilot ID (required) — The unique identifier of the AI copilot whose file knowledge source markdown is to be fetched.
  • Knowledge Source ID (required) — The unique identifier of the file knowledge source to retrieve in markdown format.
  • Include Request in Error — Optional flag to include detailed request information in error messages for debugging failed API calls.

Output shape

An object containing the markdown content of the specified file knowledge source.

The operation returns the markdown content as part of the response payload. If the API call fails, and 'Include Request in Error' is true, the error message includes the outgoing request details and truncated response for debugging.

Examples

Example 1: Fetch file knowledge source markdown for AI copilot

Set 'Copilot ID' and 'Knowledge Source ID' with valid identifiers to retrieve the associated markdown content.

Links

Discussion