MCP cdp_source_resolve

Description

Resolves a path between its source-map representation and its local disk path.

Required parameters:

  • path (string): The path to resolve.

Optional parameters:

  • direction (string): "to-local" (default, resolves a source-map path to the local disk path) or
    "to-source-map" (resolves a local disk path to its source-map path).
  • sessionId (string): Session id returned by cdp_session_create. Uses the active session when omitted.

See also

Parameters

additionalProperties: false

NameTypeRequiredValues
pathstringYes
direction"to-local" | "to-source-map"Noenum: "to-local", "to-source-map"; default: "to-local"
sessionIdstringNo

path

The path to resolve

direction

to-local (default, resolves a source-map path to the local disk path) or to-source-map (resolves a local disk path to its source-map path)

sessionId

Session id returned by cdp_session_create. Uses the active session when omitted.


Did this page help you?