aiToolsIsAllowAlways
Boolean aiToolsIsAllowAlways(serverType, toolName, entityId)
GET /api/2.0/ai/tools/is-allow-always
Is allow always
Tells whether one named tool runs without an approval pause in the scope. Both serverType and toolName are required and are read from the query; entityId picks the scope. The answer is a bare boolean. A false answer means a call to that tool pauses the round, and the caller resumes it with the approve or deny operation.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| serverType | query | String | The MCP server type the tool belongs to. | [required] [example: docspace] |
| toolName | query | String | The tool name. | [required] [example: docspace_get_folder] |
| entityId | query | String | The DocSpace entity the request is scoped to - the room, folder or agent workspace the chat is invoked from. Omit for the portal-wide scope. | [optional] [example: 1234] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | Whether that one tool runs without an approval pause. | Boolean | - |
| 400 | serverType or toolName is missing. | AiErrorResponse | - |
| 401 | Missing asc_auth_key cookie or Authorization header. | AiErrorResponse | - |
| 403 | AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API. | AiErrorResponse | - |
| 500 | Unhandled failure. The reason is logged server-side and never echoed back. | AiErrorResponse | - |
Return type
Boolean
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json