For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/cdp/api-ref/lynx-setting.md.
Lynx
  • English
  • LynxSetting

    This page documents the LynxSetting CDP domain supported by Lynx DevTool.

    Experimental reference

    This generated reference is still being completed.

    • CDP events are not included yet.
    • Some Lynx extensions are listed but do not yet have detailed documentation.
    • Method descriptions are not automatically verified against the implementation and may be incomplete or inaccurate.

    Verify behavior against the implementation and the linked upstream CDP reference before relying on it.

    Overview

    • Scope: global
    • CDP domain: Lynx-specific

    Lynx Extensions

    LynxSetting.clearMockValues

    Clears all platform Lynx setting mock values.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters

    No parameters.

    Returns
    NameTypeDescription
    resultobjectPlatform-defined result object returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.clearMockValues and empty key and value fields.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    • If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
    Examples

    Clear mock values

    Request:

    {
      "id": 1,
      "method": "LynxSetting.clearMockValues"
    }

    Response:

    {
      "id": 1,
      "result": {}
    }

    LynxSetting.fetchLatest

    Requests the platform Lynx setting backend to fetch the latest setting values.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters

    No parameters.

    Returns
    NameTypeDescription
    resultobjectPlatform-defined result object returned after the fetch request completes.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.fetchLatest and empty key and value fields.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    • If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
    Examples

    Fetch latest values

    Request:

    {
      "id": 1,
      "method": "LynxSetting.fetchLatest"
    }

    Response:

    {
      "id": 1,
      "result": {}
    }

    LynxSetting.getFetchInfo

    Returns platform-defined Lynx setting fetch information.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters

    No parameters.

    Returns
    NameTypeDescription
    resultobjectPlatform-defined fetch information returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.getFetchInfo and empty key and value fields.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    • If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
    Examples

    Read fetch information

    Request:

    {
      "id": 1,
      "method": "LynxSetting.getFetchInfo"
    }

    Response:

    {
      "id": 1,
      "result": {}
    }

    LynxSetting.getLayeredValues

    Returns platform-defined Lynx setting values grouped by layer.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters

    No parameters.

    Returns
    NameTypeDescription
    resultobjectPlatform-defined layered values returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.getLayeredValues and empty key and value fields.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    • If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
    Examples

    Read layered values

    Request:

    {
      "id": 1,
      "method": "LynxSetting.getLayeredValues"
    }

    Response:

    {
      "id": 1,
      "result": {
        "values": {
          "feature_key": "enabled"
        }
      }
    }

    LynxSetting.getValue

    Returns the platform-defined Lynx setting value for one key.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters
    NameTypeRequiredDescription
    keystringYesNon-empty setting key to read.
    Returns
    NameTypeDescription
    resultobjectPlatform-defined result object returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.getValue, params.key, and an empty value field.
    • The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    Examples

    Read one setting value

    Request:

    {
      "id": 1,
      "method": "LynxSetting.getValue",
      "params": {
        "key": "feature_key"
      }
    }

    Response:

    {
      "id": 1,
      "result": {
        "value": "enabled"
      }
    }

    Missing key

    Request:

    {
      "id": 2,
      "method": "LynxSetting.getValue",
      "params": {}
    }

    Response:

    {
      "id": 2,
      "error": {
        "message": "Invalid params: expected string key"
      }
    }

    LynxSetting.getValues

    Returns platform-defined Lynx setting values.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters

    No parameters.

    Returns
    NameTypeDescription
    resultobjectPlatform-defined values returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.getValues and empty key and value fields.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    • If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
    Examples

    Read all values

    Request:

    {
      "id": 1,
      "method": "LynxSetting.getValues"
    }

    Response:

    {
      "id": 1,
      "result": {
        "values": {
          "feature_key": "enabled"
        }
      }
    }

    LynxSetting.removeMockValue

    Removes one platform Lynx setting mock value.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters
    NameTypeRequiredDescription
    keystringYesNon-empty setting key whose mock value should be removed.
    Returns
    NameTypeDescription
    resultobjectPlatform-defined result object returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.removeMockValue, params.key, and an empty value field.
    • The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    Examples

    Remove a mock value

    Request:

    {
      "id": 1,
      "method": "LynxSetting.removeMockValue",
      "params": {
        "key": "feature_key"
      }
    }

    Response:

    {
      "id": 1,
      "result": {}
    }

    Missing key

    Request:

    {
      "id": 2,
      "method": "LynxSetting.removeMockValue",
      "params": {}
    }

    Response:

    {
      "id": 2,
      "error": {
        "message": "Invalid params: expected string key"
      }
    }

    LynxSetting.setMockValue

    Sets one platform Lynx setting mock value.

    • Origin: lynx-extension
    • Source: devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
    Parameters
    NameTypeRequiredDescription
    keystringYesNon-empty setting key whose mock value should be set.
    valuestringYesMock value string forwarded to the platform Lynx setting backend.
    Returns
    NameTypeDescription
    resultobjectPlatform-defined result object returned by the Lynx setting backend.
    Notes
    • Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
    • The forwarded request contains method LynxSetting.setMockValue, params.key, and params.value.
    • The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
    • The C++ handler rejects missing or non-string params.value with message Invalid params: expected string mock value.
    • The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
    • Platform errors are returned as CDP error responses with the platform-provided message.
    Examples

    Set a mock value

    Request:

    {
      "id": 1,
      "method": "LynxSetting.setMockValue",
      "params": {
        "key": "feature_key",
        "value": "enabled"
      }
    }

    Response:

    {
      "id": 1,
      "result": {}
    }

    Non-string mock value

    Request:

    {
      "id": 2,
      "method": "LynxSetting.setMockValue",
      "params": {
        "key": "feature_key",
        "value": true
      }
    }

    Response:

    {
      "id": 2,
      "error": {
        "message": "Invalid params: expected string mock value"
      }
    }
    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.