法令本文ファイルダウンロード
download_law_fileDownload Japanese law text in XML, JSON, HTML, RTF, or DOCX format by specifying law ID, law number, or revision ID, and get a temporary file path.
Instructions
法令ID・法令番号・改正IDを指定して法令本文をファイル形式(xml/json/html/rtf/docx)でダウンロードし、一時ファイルに保存してそのパスを返す(e-Gov法令API v2 GET /law_file/{file_type}/{law_id_or_num_or_revision_id})
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": {
"file_type": "<file_type>",
"law_id_or_num_or_revision_id": "<law_id_or_num_or_revision_id>"
},
"name": "download_law_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asof | No | 法令の時点(YYYY-MM-DD) | |
| file_type | Yes | ダウンロード形式 | |
| law_id_or_num_or_revision_id | Yes | 法令ID、法令番号、または改正ID |