link_repositories
Link many sources to repositories in one call. Each row is independent, so failures don't stop the batch and status is reported per row.
Instructions
Link many sources to their repositories in one call -- a sweep.
Each row is link_repository: its own write and transaction, so a failed row does not stop the rest. Each row reports linked, already_linked, missing or error.
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": {
"items": "<items>"
},
"name": "link_repositories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Rows of {source, repository, call_number?, media_type?}. | |
| allow_new_type | No | Accept a type that is neither a Gramps standard type nor one of the tree's custom types, creating it as a new custom type. Only when meant: a near-miss is refused with the closest names. |