Scan a list of links
scan_linksUse this when the user gives several posts or DJ set links at once and asks CrateWire to identify the tracks in them. It works in two calls. The first call, with links, is a preview: for each link it returns what CrateWire already found and what a new scan would use from this account's plan, and it starts nothing. To start the new scans, call scan_links again with the preview_id and confirm: true within 10 minutes. One call checks up to 10 posts and 5 sets, in list order. You may send up to 50 links: posts and sets past those first 10 and 5 are not checked and come back in a resend list to send again in a new call. Each link it checks, repeats in the same list aside, counts as one of the account's 60 link lookups a day. A link CrateWire already knows shows up to 10 of its tracks. New scans follow the same plan rules as scan_link. Do not use it to confirm scans the user has not agreed to, to read results later (use find_known_tracks or get_set_tracklist), or for story, profile or playlist links.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | No | The full post and DJ set links to preview, up to 50; the first 10 posts and 5 sets are checked and no scan is used until you confirm, for example ["https://www.instagram.com/p/C1a2B3c4D5e/", "https://www.mixcloud.com/example-dj/sunday-set/"]. | |
| confirm | No | Send true together with preview_id to start the previewed scans; this uses the account's plan allowance, for example true. | |
| preview_id | No | The preview_id a preview returned, sent with confirm: true to start its scans, for example 3f2b8c1e-4d5a-4b6c-9e7f-0a1b2c3d4e5f. | |
| accept_partial | No | With preview_id and confirm: true, for sets the preview flagged as partial: true scans only the part the remaining set minutes cover, for example true. |