{"record":{"id":"51888fbd1be435f2","repo":"stablyai/orca","slug":"invalid-argument-51888f","errorCode":"invalid_argument","errorMessage":"--id must be \"accessibility\" or \"screenshots\"","messagePattern":"--id must be \"accessibility\" or \"screenshots\"","errorType":"exception","errorClass":"RuntimeClientError","httpStatus":null,"severity":"error","filePath":"src/cli/handlers/computer.ts","lineNumber":227,"sourceCode":"    })\n    printResult(result, json, (value) =>\n      formatComputerAction('set-value', value, { ...target, ...observeFlags })\n    )\n  }\n}\n\nfunction assertComputerAppFlag(flags: Map<string, string | boolean>): void {\n  getRequiredStringFlag(flags, 'app')\n}\n\nfunction getComputerPermissionSetupId(\n  flags: Map<string, string | boolean>\n): 'accessibility' | 'screenshots' | undefined {\n  const id = getOptionalStringFlag(flags, 'id')\n  if (id === undefined || id === 'accessibility' || id === 'screenshots') {\n    return id\n  }\n  throw new RuntimeClientError('invalid_argument', '--id must be \"accessibility\" or \"screenshots\"')\n}\n\nfunction formatComputerCapabilities(value: ComputerProviderCapabilities): string {\n  return [\n    `${value.provider} (${value.platform}, protocol ${value.protocolVersion})`,\n    `  Apps: list=${value.supports.apps.list} bundleIds=${value.supports.apps.bundleIds} pids=${value.supports.apps.pids}`,\n    `  Windows: list=${value.supports.windows.list} targetById=${value.supports.windows.targetById} targetByIndex=${value.supports.windows.targetByIndex}`,\n    `  Observation: screenshot=${value.supports.observation.screenshot} elementFrames=${value.supports.observation.elementFrames} annotatedScreenshot=${value.supports.observation.annotatedScreenshot}`,\n    `  Actions: ${Object.entries(value.supports.actions)\n      .filter(([, enabled]) => enabled)\n      .map(([name]) => name)\n      .join(', ')}`\n  ].join('\\n')\n}\n","sourceCodeStart":209,"sourceCodeEnd":242,"githubUrl":"https://github.com/stablyai/orca/blob/1136503c6a231a16dce8f921f6fadb63d181e8db/src/cli/handlers/computer.ts#L209-L242","documentation":"getComputerPermissionSetupId (computer.ts:227) validates the optional --id on `orca computer permissions`. Only 'accessibility' and 'screenshots' are meaningful macOS permission scopes for the Computer Use helper app; any other id is rejected before the computer.permissions RPC. Match is case-sensitive and exact.","triggerScenarios":"`orca computer permissions --id camera`, `--id Accessibility` (wrong case), `--id microphones`, `--id 1`. The flag is optional; omitting it queries all scopes.","commonSituations":"Typos; wrong case (the check is case-sensitive); guessing an id from other macOS permission types (camera, microphone, input-monitoring).","solutions":["Use --id accessibility or --id screenshots (lowercase, exact)","Omit --id entirely to query/check all permission scopes at once","Run the command once without --id to see available scopes, then target one"],"exampleFix":"// before\norca computer permissions --id Accessibility\n// after\norca computer permissions --id accessibility","handlingStrategy":"type-guard","validationCode":"function assertPermissionId(id) {\n  if (id !== undefined && id !== 'accessibility' && id !== 'screenshots') {\n    throw new Error('--id must be \"accessibility\" or \"screenshots\"')\n  }\n}","typeGuard":"function isPermissionId(value) {\n  return value === 'accessibility' || value === 'screenshots'\n}","tryCatchPattern":null,"preventionTips":["Lowercase the value before comparing; the check is case-sensitive","Omit --id rather than guessing a scope name from other macOS permission types"],"tags":["cli","computer-use","permissions","macos","validation"],"backgroundTag":null,"analyzedSha":"1136503c6a231a16dce8f921f6fadb63d181e8db","analyzedAt":"2026-08-12T23:15:58.167Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}