ReferenceHTTP API
platformProbe
The platformProbe router: 5 methods of the platform-probe capability, with tier, scope, input and output.
Capability platform-probe · scope system · mode singleton · source packages/types/src/capabilities/platform-probe.cap.ts:227.
Every method is called at /trpc/platformProbe.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getCapabilities | query | protected | view | no |
getHardware | query | protected | view | no |
resolveInferenceConfig | query | protected | view | no |
resolveHwAccel | query | protected | view | no |
rescanAccelerators | mutation | admin | admin only | no |
platformProbe.getCapabilities
- Kind: query —
GET /trpc/platformProbe.getCapabilities - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplatform-probe, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=platformProbe.getCapabilitieson your hub
Input
voidOutput
{ hardware: { platform: "darwin" | "linux" | "win32"; arch: "arm64" | "x64"; cpuModel: string; cpuCores: number; totalRAM_MB: number; availableRAM_MB: number; gpu: { type: "nvidia" | "amd" | "intel" | "apple"; name: string; memoryMB?: number } | null; npu: { type: "apple-ane" | "intel-npu" | "amd-xdna"; name?: string; generation?: "xdna1" | "xdna2" } | null; coral?: { type: "coral-edgetpu"; bus?: string; count?: number; units?: ({ bus: "usb" | "pci"; count: number })[]; unavailable?: ({ bus: "usb" | "pci"; count: number; reason: "driver-missing" | "device-not-accessible" })[] } | null; nvidia?: { type: "nvidia"; name: string; memoryMB?: number; usable: true } | { type: "nvidia"; name: string; memoryMB?: number; usable: false; reason: "no-cuda-execution-provider" } | null; accelerators?: ({ deviceKey: string; fullDeviceName: pipe; executionUnits: pipe; clockMHz: pipe; gops: { int8: pipe; fp16: pipe } | null; architecture: pipe; npuName: pipe; tops: pipe; vendor: pipe; webgpuArchitecture: pipe; webgpuDevice: pipe; computeUnits: pipe })[] }; scores: ({ runtime: "python"; backend: string; format: "onnx" | "coreml" | "openvino" | "tflite"; score: number; reason: string; available: boolean })[]; bestScore: { runtime: "python"; backend: string; format: "onnx" | "coreml" | "openvino" | "tflite"; score: number; reason: string; available: boolean }; pythonPath: string | null; devices: ({ key: string; backend: string; device: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"; runtime: "python"; score: number; available: boolean })[] }platformProbe.getHardware
- Kind: query —
GET /trpc/platformProbe.getHardware - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplatform-probe, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=platformProbe.getHardwareon your hub
Input
voidOutput
{ platform: "darwin" | "linux" | "win32"; arch: "arm64" | "x64"; cpuModel: string; cpuCores: number; totalRAM_MB: number; availableRAM_MB: number; gpu: { type: "nvidia" | "amd" | "intel" | "apple"; name: string; memoryMB?: number } | null; npu: { type: "apple-ane" | "intel-npu" | "amd-xdna"; name?: string; generation?: "xdna1" | "xdna2" } | null; coral?: { type: "coral-edgetpu"; bus?: string; count?: number; units?: ({ bus: "usb" | "pci"; count: number })[]; unavailable?: ({ bus: "usb" | "pci"; count: number; reason: "driver-missing" | "device-not-accessible" })[] } | null; nvidia?: { type: "nvidia"; name: string; memoryMB?: number; usable: true } | { type: "nvidia"; name: string; memoryMB?: number; usable: false; reason: "no-cuda-execution-provider" } | null; accelerators?: ({ deviceKey: string; fullDeviceName: pipe; executionUnits: pipe; clockMHz: pipe; gops: { int8: pipe; fp16: pipe } | null; architecture: pipe; npuName: pipe; tops: pipe; vendor: pipe; webgpuArchitecture: pipe; webgpuDevice: pipe; computeUnits: pipe })[] }platformProbe.resolveInferenceConfig
- Kind: query —
GET /trpc/platformProbe.resolveInferenceConfig - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplatform-probe, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=platformProbe.resolveInferenceConfigon your hub
Input
{ requirements: ({ modelId: string; name: string; minRAM_MB: number; accuracyScore: number; formats: string[] })[] }Output
{ modelId: string; runtime: "python"; backend: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"; reason: string }platformProbe.resolveHwAccel
- Kind: query —
GET /trpc/platformProbe.resolveHwAccel - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityplatform-probe, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=platformProbe.resolveHwAccelon your hub
Input
{ prefer?: "videotoolbox" | "cuda" | "nvdec" | "vaapi" | "qsv" | "d3d11va" | "dxva2" | "amf" | "vdpau" | "drm" | "coreml" | "tensorrt" | "openvino" | "directml" | "webgpu" | "none" | null }Output
{ preferred: string[]; rationale: string }platformProbe.rescanAccelerators
- Kind: mutation —
POST /trpc/platformProbe.rescanAccelerators - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=platformProbe.rescanAcceleratorson your hub
Input
voidOutput
{ devices: ({ key: string; backend: string; device: string; format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf"; runtime: "python"; score: number; available: boolean })[]; appeared: string[]; disappeared: string[]; usbBus: "observed" | "unobservable"; decidedBy: "usb-ids" | "pci" | "delegate-fallback" | "none" }