Add files from the Library
add_from_libraryAdd files from the user's Library to the open project. Pass Library ids from search_library. Returns each file's Asset ID; place it with patch_film. A file the project already has returns its Asset ID again. A file that cannot be added, such as one in the Trash, is listed with the reason. A file still uploading is listed too: call wait_for_asset with its Library id, as the NEXT line says, which adds it once its upload lands. Nothing is copied or charged. If the answer says a video is still processing, call wait_for_asset with its Asset ID before you place it.
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": {
"ids": "<ids>",
"projectId": "<projectId>"
},
"name": "add_from_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Library ids from search_library, 1 to 200. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |