# useRuntimeCapabilities

<!-- https://uncage.vercel.app/docs/api/react/functions/useruntimecapabilities/ -->

```ts
function useRuntimeCapabilities(runtimeId?): 
  | {
  approval: {
     once: boolean;
     session: boolean;
     types: ("mcp" | "file" | "shell" | "network" | "other")[];
  };
  attachments: {
     files: boolean;
     images: boolean;
     maxBytes: number;
     maxImageBytes?: number;
  };
  diffEvents: boolean;
  efforts: ("low" | "medium" | "high" | "xhigh" | "max")[];
  mcp: boolean;
  models: object[];
  modelsAuthoritative?: boolean;
  nativeResume: boolean;
  permissionModes: ("default" | "acceptEdits" | "plan" | "auto" | "bypassPermissions")[];
  siteTools: boolean;
  skills: "unknown" | "supported" | "partial" | "prompt";
  streaming: boolean;
}
  | undefined;
```

Defined in: react/src/hooks.ts:148

## Parameters

| Parameter | Type |
| ------ | ------ |
| `runtimeId?` | `string` |

## Returns

  \| \{
  `approval`: \{
     `once`: `boolean`;
     `session`: `boolean`;
     `types`: (`"mcp"` \| `"file"` \| `"shell"` \| `"network"` \| `"other"`)[];
  \};
  `attachments`: \{
     `files`: `boolean`;
     `images`: `boolean`;
     `maxBytes`: `number`;
     `maxImageBytes?`: `number`;
  \};
  `diffEvents`: `boolean`;
  `efforts`: (`"low"` \| `"medium"` \| `"high"` \| `"xhigh"` \| `"max"`)[];
  `mcp`: `boolean`;
  `models`: `object`[];
  `modelsAuthoritative?`: `boolean`;
  `nativeResume`: `boolean`;
  `permissionModes`: (`"default"` \| `"acceptEdits"` \| `"plan"` \| `"auto"` \| `"bypassPermissions"`)[];
  `siteTools`: `boolean`;
  `skills`: `"unknown"` \| `"supported"` \| `"partial"` \| `"prompt"`;
  `streaming`: `boolean`;
\}
  \| `undefined`
