Grant secret to project
grant_secrets_addShare a secret with another project so its resources can use it, returning the grant while ownership stays with the original project.
Instructions
Shares a secret with another project so that project's resources can use it, and returns the grant; ownership doesn't change.
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": {
"orgID": "<orgID>",
"secretID": "<secretID>",
"target_project_id": "<target_project_id>"
},
"name": "grant_secrets_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgID | Yes | Organization ID (org_...). | |
| secretID | Yes | Secret ID (sec_...). | |
| target_project_id | Yes | Project ID (proj_...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identifies this grant; use it to revoke the project's access. | |
| org_id | Yes | Organization the grant and its secret belong to. | |
| secret_id | Yes | Secret shared by this grant. | |
| created_at | Yes | When the secret was granted to the project. | |
| target_project_id | Yes | Project that can use the secret through this grant. |