get_selection
The region selected on the canvas, as its own record. This is what makes a highlighted stretch a pipeline INPUT: wire its record into any node's subject and that step runs on the selection rather than on the whole molecule.
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": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pad | No | extend the selection by this many bases on each side, clamped to the molecule (or wrapped, on a circular one). In bp. | |
| _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. | |
| _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. | |
| reverse_complement | No | emit the bottom strand of the selection (what a feature on the minus strand actually reads). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | end on the parent, exclusive | |
| start | Yes | 0-based start on the parent molecule | |
| length | Yes | length in bp | |
| record | Yes | the selected region as a linear record (subject for downstream nodes) | |
| sequence | Yes | the selected bases 5'→3' |