← 返回
未分类 中文

Parliament CLI

UK Parliament CLI — search bills, divisions, members, and written questions from official UK Parliament APIs, with stable JSON envelopes for agents. Use when...
UK Parliament CLI — search bills, divisions, members, and written questions from official UK Parliament APIs, with stable JSON envelopes for agents. Use when...
shan8851
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 338
下载
💾 0
安装
1
版本
#latest

概述

parliament-cli

Use parliament for UK Parliament data: bills, members, divisions/votes, and written questions.

Setup

  • npm install -g @shan8851/parliament-cli
  • No API key or auth required

Bills

  • By id: parliament bill 3973
  • By title: parliament bill "renters rights"
  • Search: parliament search bills "energy"

Divisions and Votes

  • Search divisions: parliament divisions "budget"
  • Lookup by id: parliament divisions 2211
  • Alias: parliament votes 2211

Members

  • By name: parliament member "Keir Starmer"
  • By id: parliament member 4514

Written Questions

  • Search: parliament questions "transport"
  • Lookup by id or UIN query: parliament questions 902178

Output

  • Defaults to text in a TTY and JSON when piped
  • Force JSON: parliament bill 3973 --json
  • Success envelope: { ok, schemaVersion, command, requestedAt, data }
  • Error envelope: { ok, schemaVersion, command, requestedAt, error }

Agent Notes

  • Ambiguous text queries return AMBIGUOUS_QUERY with candidate hints in error.details
  • No auth setup needed, so agents can use it immediately
  • Exit codes are explicit and errors stay structured in JSON mode

Notes

  • Official sources include the Bills, Members, Written Questions, and Commons Votes APIs
  • votes is an alias of divisions

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 11:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Fuel CLI

shan8851
英国燃料价格命令行工具 — 通过邮编或坐标查找附近加油站,获取站点详情,按价格/距离/新鲜度排名,支持代理友好的 JSON 包装
★ 0 📥 408

companies-house-cli

shan8851
UK Companies House CLI — 搜索公司、公司概况、董事、申报、PSC、抵押、破产,提供代理友好的 JSON 输出,兼容 rail-cli 与 tf...
★ 0 📥 450

Rail CLI

shan8851
英国国家铁路CLI:实时出发、到达、车站搜索、目的地过滤、批量车站搜索(从stdin)以及轻量级字段选择 for...
★ 0 📥 488