MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createPermissionRequestMessage

Function createPermissionRequestMessage

src/utils/teammateMailbox.ts:488–507  ·  view source on GitHub ↗
(params: {
  request_id: string
  agent_id: string
  tool_name: string
  tool_use_id: string
  description: string
  input: Record<string, unknown>
  permission_suggestions?: unknown[]
})

Source from the content-addressed store, hash-verified

486 * Creates a permission request message to send to the team leader
487 */
488export function createPermissionRequestMessage(params: {
489 request_id: string
490 agent_id: string
491 tool_name: string
492 tool_use_id: string
493 description: string
494 input: Record<string, unknown>
495 permission_suggestions?: unknown[]
496}): PermissionRequestMessage {
497 return {
498 type: 'permission_request',
499 request_id: params.request_id,
500 agent_id: params.agent_id,
501 tool_name: params.tool_name,
502 tool_use_id: params.tool_use_id,
503 description: params.description,
504 input: params.input,
505 permission_suggestions: params.permission_suggestions || [],
506 }
507}
508
509/**
510 * Creates a permission response message to send back to a worker

Calls

no outgoing calls

Tested by

no test coverage detected