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

Function sendRequest

src/hooks/useReplBridge.tsx:541–559  ·  view source on GitHub ↗
(requestId_0, toolName, input, toolUseId, description, permissionSuggestions, blockedPath)

Source from the content-addressed store, hash-verified

539 // handler can race bridge responses against local user interaction.
540 const permissionCallbacks: BridgePermissionCallbacks = {
541 sendRequest(requestId_0, toolName, input, toolUseId, description, permissionSuggestions, blockedPath) {
542 handle_0.sendControlRequest({
543 type: 'control_request',
544 request_id: requestId_0,
545 request: {
546 subtype: 'can_use_tool',
547 tool_name: toolName,
548 input,
549 tool_use_id: toolUseId,
550 description,
551 ...(permissionSuggestions ? {
552 permission_suggestions: permissionSuggestions
553 } : {}),
554 ...(blockedPath ? {
555 blocked_path: blockedPath
556 } : {})
557 }
558 });
559 },
560 sendResponse(requestId_1, response) {
561 const payload: Record<string, unknown> = {
562 ...response

Callers

nothing calls this directly

Calls 1

sendControlRequestMethod · 0.80

Tested by

no test coverage detected