Read the editable source behind one project tool before changing it; returns the tool with its source text, edit mode and the reasons it can only be edited as source. Requires project.agents.read.
Arguments
projectReferenceString!requiredidString!requiredThe id of the definition, from its list.
sourceTargetKindSourceReadTargetKindThe source to read; default runtimeTargetKind, else project. main_branch reads the project source. One of
project,main_branch,preview_branch.runtimeTargetKindRuntimeTargetKindUsed as the source to read when sourceTargetKind is omitted. One of
main_branch,environment,preview_branch.targetBranchIdIDRequired with the kind preview_branch.
targetEnvironmentIdIDNot supported for source reads; a non-null value is refused as invalid_input.
Responses
query ToolSource($projectReference: String!, $id: String!) { toolSource(projectReference: $projectReference, id: $id) { id name description sourcePath source editMode sourceOnlyReasons }}{ "data": { "toolSource": { "id": "string", "name": "string", "description": "string", "sourcePath": "string", "source": "string", "editMode": "structured", "sourceOnlyReasons": [ "string" ] } }}The ToolSource! in data.toolSource.