Skip to main content
Get the contract for a discovered or first-party job target

Tool details

FieldValue
Nameget_job_target
GroupJobs

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "target_name": {
      "type": "string",
      "description": "Target name, for example task:knowledge-ingest"
    },
    "runtime_target_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "production",
            "environment",
            "preview_branch"
          ],
          "description": "Provide the runtime target kind."
        },
        {
          "type": "null",
          "description": "Provide the runtime target kind."
        }
      ],
      "description": "Provide the runtime target kind."
    },
    "target_environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target environment id."
        },
        {
          "type": "null",
          "description": "Provide the target environment id."
        }
      ],
      "description": "Provide the target environment id."
    },
    "target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Provide the target branch id."
        },
        {
          "type": "null",
          "description": "Provide the target branch id."
        }
      ],
      "description": "Provide the target branch id."
    },
    "source_target_kind": {
      "type": "string",
      "enum": [
        "project",
        "production",
        "environment",
        "preview_branch"
      ],
      "description": "Provide the source target kind."
    }
  },
  "required": [
    "project_reference",
    "target_name"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Input schema for the get_job_target tool."
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "The target associated with this tool result."
    },
    "family": {
      "type": "string",
      "description": "The family associated with this tool result."
    },
    "description": {
      "type": "string",
      "description": "Human-readable description returned by the tool."
    },
    "input_schema": {
      "type": "object",
      "additionalProperties": {
        "description": "Additional structured values associated with this result."
      },
      "description": "Structured input schema details associated with this tool result."
    },
    "output_schema": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "description": "Additional structured values associated with this result."
          },
          "description": "Structured output schema details associated with this tool result."
        },
        {
          "type": "null",
          "description": "The output schema returned by the tool."
        }
      ],
      "description": "The output schema associated with this tool result."
    }
  },
  "required": [
    "target",
    "family",
    "description",
    "input_schema",
    "output_schema"
  ],
  "additionalProperties": false,
  "description": "One data item associated with this tool result.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}