talonic_sources_import
Bring chosen files from a connected source into Talonic as documents: file_ids from talonic_sources_browse, optional tags. Imported files are read like uploaded documents, which uses credits; follow progress with talonic_sources_imports. Call only when the user asked to import these files. NOT FOR keeping a source in sync: talonic_sources_sync_settings.
Availability
Listed when the session can read the workspace's sources (sources:read on a connector session); connecting, importing and sync settings need sources:write. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| connection_id * | string | The connection id from talonic_sources_connections |
| file_ids * | string[] | File ids from talonic_sources_browse |
| tags | string[] | Tags for the imported documents |
Example
Example
// talonic_sources_import({ "connection_id": "1111…", "file_ids": ["f_9"] })
{ "id": "3333…", "status": "queued" }Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.
Frequently asked questions
Does it use credits?+
Yes: imported files are read like uploaded documents.