Loading...
Loading...
Search PubMed for scientific literature, including published clinical trials. Fetch abstracts and full text. Link published research to biological databases (gene, protein, nucleotide, PubChem) to discover associations between papers and specific compounds or genes. Verify medical spelling, match raw citations, and cache result sets for bulk processing. Interfaces NCBI E-utilities and PMC BioC APIs.
npx skill4agent add google-deepmind/science-skills pubmed-databaseuvuvuv.env.envNCBI_API_KEYUSER_EMAIL.envENV_FILE.envprintf "Enter NCBI API key (typing hidden): " && read -s key && echo && echo "NCBI_API_KEY=$key" >> "ENV_FILE" && echo "Saved."printf "Enter contact email: " && read email && echo "USER_EMAIL=$email" >> "ENV_FILE" && echo "Saved."dotenv.envcatgrepechoprintenvos.environ.getscripts/pubmed_api.pyscripts/pubmed_api.pyNCBI_API_KEYjqjqtmp_$TASK_ID/SKILL.mdscripts/pubmed_api.pyreferences/advanced-linking.mdadvanced-search.mdbulk-workflows.mdcitation-matching.mdcross-database-linking.mdfetch-and-resolve.mdsearch-and-discovery.mdutilities.mduv run scripts/pubmed_api.py <output_file> <function_name> <required_args> [--flag value ...]"35113657,31234568"--flag valueoutput_fileuv run scripts/pubmed_api.py ./search_results.json search_pubmed "BRCA1" --max_results 5
cat ./search_results.json | jq '.[]' -r
uv run scripts/pubmed_api.py ./abstracts.json fetch_article_abstracts "35113657"
cat ./abstracts.json | jq '.[0].title' -rcat ./search_results.json | jq -r 'join(",")'cat ./abstracts.json | jq '[.[] | {pmid, title, snippet: (.abstract // "")[:500]}]'cat ./abstracts.json | jq '[.[] | select((.title // "") | contains("Review"))]'jqtitleabstract⚠️ MANDATORY: You MUST read the linked reference file for a function group before calling any function in that group. The tables below only describe what each function does — not how to call it. Argument names, argument order, flags, and output schemas are only documented in the reference files. Do NOT guess or infer arguments from function names. If you call a function without first reading its reference, you will produce incorrect invocations.
search_pubmedglobal_database_discoveryfetch_article_abstractsget_full_text_pmcfetch_database_summaryfind_linked_biological_datadiscover_available_linkscache_results_historywebenvquery_keyfetch_article_abstractsfind_linked_biological_datajqcache_results_historyverify_medical_spellingmatch_raw_citations