添付ファイル取得
get_attachmentRetrieves attachments (images, PDF, ZIP) for a given law revision ID via e-Gov API, saves them locally, and returns the file path. Use optional src to target a specific attachment.
Instructions
法令改正IDを指定して法令本文の添付ファイル(画像・PDF・Zipなど)を取得し、一時ファイルに保存してそのパスを返す(e-Gov法令API v2 GET /attachment/{law_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": {
"law_revision_id": "<law_revision_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | No | 添付ファイルの指定(本文中の参照名) | |
| law_revision_id | Yes | 法令改正ID |