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
- HTTP cdpGetSource (
GET /api/cdp/source/get) - rk cdp source get
Parameters
additionalProperties: false
| Name | Type | Required | Values |
|---|---|---|---|
| file | string | Yes | |
| startLine | integer | No | minimum: 1 |
| endLine | integer | No | minimum: 1 |
| sessionId | string | No |
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.
Updated about 5 hours ago
Did this page help you?