跳到主要内容

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​

NameInTypeDescriptionNotes
serverTypequeryStringThe MCP server type the tool belongs to.[required] [example: docspace]
toolNamequeryStringThe tool name.[required] [example: docspace_get_folder]
entityIdqueryStringThe 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 codeDescriptionTypeResponse headers
200Whether that one tool runs without an approval pause.Boolean-
400serverType or toolName is missing.AiErrorResponse-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI 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-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

Boolean

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json