MCP cdp_source_get

Description

Returns lines of source content from one file in the loaded source map, optionally restricted to a line range.

Required parameters:

  • file (string): A local disk path as returned by cdp_source_list: absolute, or relative to the session project root.

Optional parameters:

  • startLine (integer): 1-based, inclusive start line.
  • endLine (integer): 1-based, inclusive end line.
  • sessionId (string): Session id returned by cdp_session_create. Uses the active session when omitted.

See also

Parameters

additionalProperties: false

NameTypeRequiredValues
filestringYes
startLineintegerNominimum: 1
endLineintegerNominimum: 1
sessionIdstringNo

file

A local disk path as returned by cdp_source_list: absolute, or relative to the session project root

startLine

1-based, inclusive start line

endLine

1-based, inclusive end line

sessionId

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


Did this page help you?