1---2name: ensembl-skill3description: Submit compact Ensembl REST API requests for lookup, overlap, cross-reference, and variation endpoints. Use when a user wants concise Ensembl summaries4---56## Operating rules7- Use `scripts/rest_request.py` for all Ensembl API calls.8- Use `base_url=https://rest.ensembl.org`.9- The script accepts `max_items`; object lookups usually do not need it, but `overlap` and `xrefs` are better with `max_items=10`.10- Send JSON-friendly headers such as `Accept: application/json` and `Content-Type: application/json`.11- Re-run requests in long conversations instead of relying on older tool output.12- Treat displayed `...` in tool previews as UI truncation, not part of the true request.1314## Execution behavior15- Return concise markdown summaries from the script JSON by default.16- Return the script JSON verbatim only if the user explicitly asks for machine-readable output.17- Prefer these paths: `lookup/id/<id>`, `overlap/region/<species>/<region>`, `xrefs/id/<id>`, and `variation/<species>/<id>`.18- Use `save_raw=true` when the user needs the full payload.1920## Input21- Read one JSON object from stdin.22- Required fields: `base_url`, `path`23- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`24- Common Ensembl patterns:25 - `{"base_url":"https://rest.ensembl.org","path":"lookup/id/ENSG00000141510","headers":{"Accept":"application/json","Content-Type":"application/json"}}`26 - `{"base_url":"https://rest.ensembl.org","path":"overlap/region/homo_sapiens/1:1000000-1002000","params":{"feature":"gene"},"headers":{"Accept":"application/json","Content-Type":"application/json"},"max_items":10}`2728## Output29- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records` or a compact `summary`.30- Use `raw_output_path` when `save_raw=true`.31- Failure returns `ok=false` with `error.code` and `error.message`.3233## Execution34```bash35echo '{"base_url":"https://rest.ensembl.org","path":"lookup/id/ENSG00000141510","headers":{"Accept":"application/json","Content-Type":"application/json"}}' | python scripts/rest_request.py36```3738## References39- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.