search_pubmed
Search PubMed to find scientific articles using customizable filters for titles, abstracts, and keywords. Retrieve publication details including authors, journals, and abstracts with support for Boolean search operators.
Instructions
Search PubMed and return a list of article JSON objects.
Parameters: query: Free-text user query; boolean operators (AND/OR/NOT) supported by PubMed. max_results: Maximum number of records to retrieve (retmax). title: If True, include Title field in search restriction (ti / tiab). abstract: If True, include Abstract field in search restriction (ab / tiab). keywords: If True, expand search to Author Keywords (ot) and MeSH Headings (mh).
Field logic: - title and abstract both True => core search uses [tiab] - only title True => uses [ti] - only abstract True => uses [ab] - neither title nor abstract True => no restriction (all fields) - keywords True => additionally OR with [ot] and [mh] versions of the query
Returns: List[dict]: Each dict contains pmid, title, authors, abstract, journal, publication_year, publication_month, url.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abstract | No | ||
keywords | No | ||
max_results | No | ||
query | Yes | ||
title | No |