This feature is deprecated and will be removed in the future.
It is not recommended for use.
Import from "@langchain/community/document_loaders/web/figma" instead. This entrypoint will be removed in 0.3.0.
Class representing a document loader for loading Figma files. It
extends the BaseDocumentLoader and implements the FigmaLoaderParams
interface. The constructor takes a config object as a parameter, which
contains the access token, an array of node IDs, and the file key.
Fetches the Figma file using the Figma API, creates a Document instance
with the JSON representation of the file as the page content and the
API URL as the metadata, and returns it.
Returns Promise<Document[]>
A Promise that resolves to an array of Document instances.
⚠️ Deprecated ⚠️
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Class representing a document loader for loading Figma files. It extends the BaseDocumentLoader and implements the FigmaLoaderParams interface. The constructor takes a config object as a parameter, which contains the access token, an array of node IDs, and the file key.
Example