Create document
create_docCreate a new Silvalabs library card from the agent (needs API key scope ingest:write). Accepts markdown text OR a http(s) URL — not both. Files/PDF/DOCX uploads are NOT supported; if you have a file, save a link (url) instead. Video/audio URLs (YouTube, Vimeo, media files) are saved as BOOKMARK only — source_url in UI, no media download/transcript. New cards are visible_to_agent=true and marked source_type=api (badge «Создано агентом»). Agent cards are NOT in Ask/Library search until a human opts in from the UI («В поиск»). Optional collection: folder name, UUID, or silvalabs:folder//… After create, use get_doc with returned id/ref. Do not invent ids.
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_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) URL to save (mutually exclusive with markdown); video/audio → BOOKMARK | |
| title | No | Optional title | |
| markdown | No | Markdown/text body (mutually exclusive with url) | |
| collection | No | Optional folder name, UUID, or silvalabs:folder/<uuid>/<name> | |
| user_notes | No | Optional note | |
| ingest_depth | No | For url only: FULL (default) or BOOKMARK; forced BOOKMARK for video/audio |