Mutation
mutation ResolveAgentApproval($input: ResolveAgentApprovalInput!) {
resolveAgentApproval(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"leaseId": "id",
"decision": "APPROVED"
}
}Response
{
"data": {
"resolveAgentApproval": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
resolveAgentApproval
Approves or denies a pending Sidekick tool-use approval request identified by its leaseId. When approved, the agent session automatically resumes and executes the approved tools. When denied, the agent is notified so it can explain the denial to the user. An optional reviewerNote is passed back to the agent in both cases.
MUTATION
resolveAgentApproval(input: ResolveAgentApprovalInput!): ResolveAgentApprovalOutput!Arguments
input
required
Returns
error
Mutation
mutation ResolveAgentApproval($input: ResolveAgentApprovalInput!) {
resolveAgentApproval(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"leaseId": "id",
"decision": "APPROVED"
}
}Response
{
"data": {
"resolveAgentApproval": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

