add_notebook_figure
Put a drawing that is on screen into the lab notebook as a numbered figure: a chart, gel, map or any other picture a tool drew on the stage. It is appended to the entry the user has open (or to the one you name), captioned with the drawing, the tool that drew it and what that tool concludes now, and numbered where it falls, exactly as the Export panel and a chart's own menu do it. Vector drawings stay vector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | the stage tab or the tool surface id it shows (e.g. `qpcr-curves`). Leave it out for the tab the user is looking at. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| caption | No | a caption to use instead of the generated one. Leave it out unless the user asked for wording: the generated caption names the drawing, the tool and its reading. | |
| drawing | No | the drawing to take, by its name (a chart's title, e.g. "Melt curve"). Leave it out to take the first drawing of the tab. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| entry_id | No | append to this entry instead of the open one; with neither, a new entry is started and named after the drawing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| figure | Yes | its figure number in that entry, as the preview and every export print it | |
| caption | Yes | the caption written | |
| entry_id | Yes | the entry the figure went into |