Create term embed
create_term_embedPut one confirmed term of a project on other sites (PM-1165, PM-1166): a link anybody can open with no account, which shows the term's word, its definition with its formulas and — while the project is public — where it is defined; nothing else of the project. Answers with the ready code: 'script' once per page and 'mark' around the words on the site, which open the term in a cloud, or 'iframe', a card. Name the term by 'id' (list_terms), or by 'project' and 'term' — its word or any spelling. 'sites' limits which sites may show it (https://example.org each; none is any); 'days' gives it a term (none is until removed). Only for somebody who may write in the project and open the term's source; a line in the project's history. For many terms of one article, create_embed_set gives one link for all of them. 'lang' (e.g. 'en') shows the definition in that language: a person's translation (set_registry_translation), else the machine's, translated in the background and marked «Machine-translated from …»; a page may also ask for a language itself with data-kaiku-lang on the script.
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": "create_term_embed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The term's id, as list_terms returned it. Or name it by 'project' and 'term'. | |
| days | No | Days the link answers, 1 to 3650. Optional: none is until it is removed. | |
| lang | No | The language the link shows the words in, e.g. 'en' (PM-1373): a person's translation where there is one, else the machine's, marked as such. Optional: none shows them as written; a page may still ask for another. | |
| term | No | The term's word or one of its spellings, with 'project'. | |
| sites | No | Sites that may show it, comma-separated, as https://example.org. Optional: none is any site. | |
| project | No | The project key, with 'term'. |