export_map_svg
Render the open record's map to a publication SVG string, circular or linear — the same figure the Export panel draws, with the same knobs and the same defaults.
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": "export_map_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | linear only: last base of the window to draw (1-based, inclusive); left unset, the record's last base. In bp. Only applies when layout is linear. | |
| font | No | figure font — one of the three stacks that survive an SVG-to-PDF conversion without substitution. | sans |
| size | No | square canvas edge, before a legend strip is added below it. In px. | |
| start | No | linear only: first base of the window to draw (1-based); left unset, the record's first base. In bp. Only applies when layout is linear. | |
| title | No | figure title; left empty, the record's own name is used. | |
| _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. | |
| layout | No | circular: the ring; linear: the record unrolled into rows, features in lanes under a ruler and sites above it. | circular |
| legend | No | add a colour key on its own strip below the map. | |
| enzymes | No | enzymes whose cut sites fill the site ring — resolved against the bundled cut catalog (REBASE spellings; smaller than the REBASE dossier the editor shows). Left unset, the run uses your active enzyme collection; with none active the ring is drawn empty rather than silently filled. | |
| _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. | |
| show_bases | No | linear only: draw both strands' bases over the ruler; rows wrap to keep each base readable. Only applies when layout is linear. | |
| show_sites | No | draw the outer restriction-site ring. | |
| show_labels | No | draw each feature's name beside its arc. | |
| transparent | No | omit the backing rect, so the figure drops onto any ground. | |
| collapse_duplicate_labels | No | fold leader labels that would repeat a name into one row, as `misc_binding ×13` — the same rule the interactive map uses. Off reproduces the upstream renderer's figure exactly, one leader per feature. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | publication SVG string | |
| rows | Yes | rows a linear map wrapped into; 0 for the circular layout | |
| sites | Yes | cut sites drawn (the outer ring, or the ticks above a linear map's ruler) | |
| width | Yes | rendered width in px | |
| height | Yes | rendered height in px — taller than the width when a legend strip was added |