IFClite TypeScript API
    Preparing search index...

    Variable BRIDGE_LIMITSConst

    BRIDGE_LIMITS: {
        maxBufferedBytes: number;
        maxCallBytes: number;
        maxDescriptionLength: 8192;
        maxDescriptorBytes: number;
        maxFrameDepth: 72;
        maxFrameNodes: 300000;
        maxIdLength: 64;
        maxImageBytes: number;
        maxImagesPerResult: 2;
        maxMessageBytes: number;
        maxPendingCalls: 64;
        maxResultBytes: number;
        maxResultDepth: 64;
        maxResultNodes: 250000;
        maxSchemaDepth: 32;
        maxSchemaNodes: 5000;
        maxTitleLength: 256;
        maxToolNameLength: 64;
        maxTools: 256;
        maxTypeLength: 16;
        maxUnpairedBytes: number;
    }

    Bridge-side limits the tab must stay within. A hello or update over a limit is refused (a hello fatally, an update with a non-fatal error frame); a result over a limit fails its call with an isError result naming the limit.

    Type Declaration

    • ReadonlymaxBufferedBytes: number
    • ReadonlymaxCallBytes: number

      Bridge -> tab: largest call frame, calls waiting per session, and bytes queued on the socket. Past any, a call fails before it is sent.

    • ReadonlymaxDescriptionLength: 8192
    • ReadonlymaxDescriptorBytes: number

      UTF-8 bytes of all tool descriptors together (as JSON), schemas included.

    • ReadonlymaxFrameDepth: 72

      Nesting depth of a whole frame, checked before any field is read.

    • ReadonlymaxFrameNodes: 300000

      JSON values in a whole frame, checked before any field is read.

    • ReadonlymaxIdLength: 64

      Length of id, sessionId and pairingCode strings.

    • ReadonlymaxImageBytes: number
    • ReadonlymaxImagesPerResult: 2
    • ReadonlymaxMessageBytes: number

      Largest inbound frame on a paired session, in bytes. A bigger frame closes the channel (WebSocket close 1009).

    • ReadonlymaxPendingCalls: 64
    • ReadonlymaxResultBytes: number

      UTF-8 bytes of one result value, as JSON.

    • ReadonlymaxResultDepth: 64

      Nesting depth of one result value (the result object is level 1).

    • ReadonlymaxResultNodes: 250000

      JSON values in one result value.

    • ReadonlymaxSchemaDepth: 32

      Nesting depth of one tool's inputSchema (the schema object itself is level 1).

    • ReadonlymaxSchemaNodes: 5000

      JSON values (objects, arrays, scalars) in one tool's inputSchema.

    • ReadonlymaxTitleLength: 256
    • ReadonlymaxToolNameLength: 64

      A name this long is accepted, but served only if its tab_ name fits MAX_MCP_TOOL_NAME.

    • ReadonlymaxTools: 256
    • ReadonlymaxTypeLength: 16

      Length of type strings.

    • ReadonlymaxUnpairedBytes: number

      Inbound bytes allowed on a channel BEFORE it is paired (the hello and nothing else): enough for maxDescriptorBytes plus slack. More, and the channel is dropped before anything is parsed.