ncbi_efetch
Fetch full records from NCBI databases. Provide IDs and select output format (XML, FASTA, GenBank, etc.) to retrieve sequences and other data.
Instructions
Fetch full records using efetch. Returns actual data (sequences, records, etc.)
Args:
database: NCBI database name (alias: db)
ids: IDs to fetch. Accepts either a list of strings
(e.g., ["123", "456"]) or a comma-separated string ("123,456").
rettype: Return type (xml, fasta, gb, etc.)
retmode: Return mode (text, xml, json where applicable)
db: Alias for database.
Returns: Response text in requested format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | ||
| ids | No | ||
| retmode | No | text | |
| rettype | No | xml | |
| database | No |