tooluniverse.core_tool module

CORE API Tool for searching open access academic papers.

CORE is the world’s largest collection of open access research papers. This tool provides access to over 200 million open access papers from repositories and journals worldwide.

class tooluniverse.core_tool.CoreTool[source]

Bases: BaseTool

Tool for searching CORE open access academic papers.

__init__(tool_config=None)[source]
run(tool_arguments)[source]

Execute the CORE search.

Parameters:

tool_arguments – Dictionary containing search parameters

Returns

List of paper dictionaries

class tooluniverse.core_tool.CorePDFSnippetsTool[source]

Bases: BaseTool

Fetch an open-access PDF (commonly returned by CORE) and return bounded text snippets around user-provided terms.

Extraction backends (fastest first when extractor=”auto”): - PyMuPDF (fitz) - pypdf - markitdown

__init__(tool_config)[source]
run(arguments)[source]

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

Parameters:
  • arguments (dict, optional) – Tool-specific arguments

  • stream_callback (callable, optional) – Callback for streaming responses

  • use_cache (bool, optional) – Whether result caching is enabled

  • validate (bool, optional) – Whether parameter validation was performed

Note

These additional parameters (stream_callback, use_cache, validate) are passed from run_one_function() to provide context about the execution. Tools can use these for optimization or special handling.

For backward compatibility, tools that don’t accept these parameters will still work - they will only receive the arguments parameter.