create_molstar_view
Package protein and optional ligand PDB coordinates into an interactive Mol* HTML viewer for 3D visualization after structure or docking work; returns HTML bytes loading Mol* from a CDN.
Instructions
Package supplied protein and optional ligand PDB coordinates into an interactive Mol* HTML viewer, or return an exact fixture reference. Use when a client needs a 3D visualization after structure or docking work; this does not calculate a new pose. Returns HTML bytes whose viewer loads its library from a CDN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Execution or visualization mode; inspect enum choices and required inputs for each. | |
| runId | Yes | Caller-chosen identifier linking this call to one research run. | |
| viewId | Yes | Caller-chosen identifier for the generated Mol* view. | |
| ligandPdbBase64 | No | Base64-encoded ligand PDB coordinates to embed in a 3D view. | |
| ligandArtifactRef | No | Reference identifying the ligand coordinate artifact represented in the view. | |
| structurePdbBase64 | No | Base64-encoded protein PDB coordinate bytes for direct computation. | |
| structureArtifactRef | Yes | Reference identifying the supplied structure-coordinate artifact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether execution completed successfully. | |
| data | No | Tool-specific result fields on success. | |
| meta | Yes | Run identifiers, timings, and input/output hashes. | |
| error | No | Structured failure on unsuccessful execution. |