Add fetch_legislation_article tool to read specific BW articles

↗ view on GitHub · Claude · 2026-05-04 · adcbdc67

- Add fetchLegislationArticle() that fetches BWB XML via manifest
  or locatie_toestand URL, then extracts article text by number
- Store xml_url (latest version) in LegislationResult from search
- Deduplicate search results keeping the newest version's XML URL
- Add fetch_legislation_article tool to LEGISLATION_TOOLS
- Add tool handler in runLLMStream

https://claude.ai/code/session_016JxWnFc3baeDgkzDgxY6ex
Repository Jeroen1991z/mikeNL
Author Claude <noreply@anthropic.com>
Authored
Committed
Parents b1507b3b
Stats 2 files changed , +160 , -8
Part of Dutch legal search tools (rechtspraak.nl + wetten.overheid.nl)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-adcbdc67.md from inside the repo you want the change in.

⬇ Download capture-commit-adcbdc67.md