Skip to main content

set_active_layer

Set the active layer for this session.

Reference

Parameters

  • Name
    layerId
    Type
    string · optional
    Description

    Layer UUID to activate, or null/omit to clear (uuid)

Returns

{
  activeLayerId  The currently active layer (or null)
  message        Confirmation of the change
}

Description

Set the active layer for this session.

Once set, all subsequent tool calls that support layerId will automatically use this layer as the default. You can still override per-call by passing an explicit layerId parameter. Pass null to clear the session layer.

Parameters:

  • layerId (optional): Layer UUID to activate. Omit or pass null to clear.

Source

Defined in packages/mcp/src/tools.ts. The request handler lives alongside its registration in packages/mcp/src/tools/.

Was this page helpful?

Last reviewed by @jschuyler