extract_methods
Extract structured methods from a paper by pulling its full text, isolating methods sections, and returning steps, reagents, equipment, and analyses via validated AI extraction.
Instructions
Extract a structured methods object from a paper.
Pulls full text, isolates the methods-relevant section(s), then asks Claude (default: claude-sonnet-4-6) to fill out a Pydantic schema with steps, reagents, equipment, and analyses. Validation-enforced — invalid responses trigger one repair attempt before raising.
Requires ANTHROPIC_API_KEY in the server's environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| input_str | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-form caveats from the extractor (e.g. 'methods section is sparse'). | |
| steps | No | ||
| summary | Yes | 2-3 sentence overview of the methods. | |
| analyses | No | ||
| paper_id | Yes | ||
| reagents | No | ||
| equipment | No | ||
| confidence | Yes | LLM self-reported confidence in the structured extraction. | |
| extraction_model | Yes | Model identifier used for extraction. |