link_file_to_library
Link a Penpot file to a component library to reuse its components, and receive a recursive list of libraries used by that library.
Instructions
Link a file to a component library to use its components. Returns recursive list of libraries used by that library.
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": {
"fileId": "<fileId>",
"libraryId": "<libraryId>"
},
"name": "link_file_to_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File ID to link | |
| libraryId | Yes | Library (file) ID to link to |