Save uploaded file in Lightbringer
register_uploadFinishes an upload after the file was PUT to the URL from request_upload_url: checks it and adds it to the destination, as the next drawing in an invention disclosure's Illustrations section or as a file in a vault folder. Until this succeeds the file is not added. If the file has not arrived yet, or Lightbringer asks to try again, the same upload can be registered again. Registering again after success returns the same result. For a vault result, the fetch reference is "vault_file:" followed by vault_file.id; the bare ID is not a vault fetch reference. Optional readback depends on the advertised fetch supporting vault files. An unavailable read does not mean the upload failed.
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": {
"upload_id": "<upload_id>"
},
"name": "register_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | upload_id from request_upload_url | |
| description | No | Illustrations only: what the drawing shows, in plain text. Shown under it in the Illustrations section. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| attachment | Yes | ||
| size_bytes | Yes | ||
| vault_file | No | ||
| illustration | Yes | ||
| destination_url | Yes |