Grant local context access
local_context_grantCreate a scoped child access capability using an owner token to delegate limited request and output-token budgets without reserving shared credits.
Instructions
Create a scoped child access capability; grant caps do not reserve shared credits.
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": {
"context_id": "<context_id>",
"owner_token": "<owner_token>",
"label": "<label>",
"max_requests": "<max_requests>",
"max_total_output_tokens": "<max_total_output_tokens>"
},
"name": "local_context_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Required diagnostic label 1..80 characters; grants no authority. | |
| context_id | Yes | Required context ID returned by create. | |
| owner_token | Yes | Required separate context owner capability; never authorize by label. | |
| ttl_seconds | No | Optional lifetime 1..3600 seconds; null means remaining context lifetime and cannot exceed it. | |
| max_requests | Yes | Required grant request cap 1..100, at most remaining context budget. | |
| max_total_output_tokens | Yes | Required grant output cap 1..65536, at most remaining context budget. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||