search_legislation
Search indexed Hong Kong e-Legislation by keyword or phrase, filter by Cap number and language, and return snippets or full section text for legal research.
Instructions
Search the locally indexed Hong Kong e-Legislation corpus.
Args: query: Words or a phrase, e.g. "bail conditions" or "合理懷疑". cap: Optional Cap number filter, e.g. "221" or "Cap. 221". lang: "en" (default) or "zh-Hant". limit: Maximum results (1-50). include_text: Include the full section text, not just a snippet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_legislation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | ||
| lang | No | en | |
| limit | No | ||
| query | Yes | ||
| max_chars | No | ||
| include_text | No |