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.
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 |