Import sources bib
import_sources_bibRead a BibTeX file's text against a project's register of sources. Without 'take' nothing is written: each entry comes back as an offer — 'new' (a source to add under the entry's key), 'fill' (the register already has the work by one of its identifiers: 'adds' lists the empty fields the entry would fill; 'unchecks' says a checked source would go back to unchecked), 'same' (nothing to add), 'conflict' ('keyTaken': the key is another work's — take it with 'as', a new key; 'twoSources': its identifiers name two sources; 'twice': it is twice in the file) or 'invalid' (no title, or a key a source cannot have). 'differs' names what the register says otherwise — never overwritten — and 'notes' what of the entry could not be read; 'problems' are places in the file that are not entries. Show the person the offers, then call again with the same 'bib' and 'take' — the entries they chose — to write them; each is written on its own and says 'created', 'filled', 'skipped' or 'refused' with the reason. Members of the project who may write only, for 'take'.
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": {
"project": "<project>",
"bib": "<bib>"
},
"name": "import_sources_bib"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bib | Yes | The .bib file's text. | |
| take | No | The entries to write, as a JSON array: [{"key":"GS90"},{"key":"Tah81","as":"Tah81b"}] — 'key' the entry's key in the file, 'as' a new key for an entry whose key the register has for another work. Leave out to only see the offers. | |
| project | Yes | The project key, e.g. MATH. |