render_pathway_ascii
Convert KEGG pathway data into ASCII representation for machine reading. Linear chain style shows reaction sequences; grid style displays spatial layout.
Instructions
Render a KEGG pathway as ASCII text optimized for LLM consumption.
Two styles available:
'chain': Linear reaction flow text showing substrate->enzyme->product chains. Robust and compact. Best for understanding reaction sequences.
'grid': 2D spatial layout using KGML coordinates. Shows the pathway topology with box-and-arrow rendering. Best for seeing spatial relationships.
Args: pathway_id: KEGG pathway ID (e.g. 'hsa00010' for human glycolysis). Must be organism-specific; reference pathways (map*) have limited KGML. style: 'chain' (default, linear text) or 'grid' (2D spatial layout). max_width: Maximum line width in characters (40-200, default 100). max_height: Grid mode only: maximum height in lines (20-80, default 40).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | chain | |
| max_width | No | ||
| max_height | No | ||
| pathway_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |