export_policy_pack
Exports a published policy pack version to Claude Code hooks, Kong, Zuplo, ToolHive or Docker MCP Gateway and returns the export with a download link that works for 15 minutes. Without version the latest version is used; the baseline pack has version 1.0. For Claude Code, mode project gives files for the repository and mode managed gives files your administrators install.
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": {
"pack_id": "<pack_id>",
"target": "<target>"
},
"name": "export_policy_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | For Claude Code hooks. Default project. | |
| target | Yes | Where the export runs. | |
| pack_id | Yes | The pack id, or baseline. | |
| version | No | The version, such as 1.0. Optional. | |
| organisation | No | The organisation's URL name (slug), from list_organisations. Leave it out: a connection signed in through OAuth reaches only the one organisation the person chose at sign-in, and an API key only its own. Only a connection approved before that choice existed, which reaches several organisations, needs it. |