Skip to Content
harness-kit

Protocol

The messages external Policies and adapters exchange with the kit, with an example of each field, generated from the JSON Schemas harness-kit protocol schema prints.

An external Policy or adapter is an executable the kit runs as <executable> <operation>, with one JSON object on standard input and one on standard output; every message carries "protocol": 1. Each example below is a message with every field filled in, a comment above a field saying what it holds; the messages themselves are plain JSON, without comments. harness-kit protocol schema prints the JSON Schema of each message (draft 2020-12), for a validator or a code generator.

Refusal

What an executable that exits with 1 prints: the remote refused the operation.

{
  // Why the operation was refused.
  "error": {
    // Why the remote refused the operation: `auth` (credentials missing, expired or refused),
    // `not_found` (what the input names does not exist), `invalid` (the input is wrong), `network`
    // (the remote could not be reached) or `unsupported` (the adapter has no such operation).
    "kind": "auth",
    // What the remote said in words, for the person who reads the refusal.
    "message": "Bad credentials: the token has expired."
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Contract adapter

adapter capabilities

<executable> capabilities reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The names of the operations the adapter supports.
    "operations": ["get_issue"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Contract forge

forge capabilities

<executable> capabilities reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The names of the operations the adapter supports.
    "operations": ["get_issue"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge pr_get

<executable> pr_get reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The number of the pull request.
    "number": 42
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The branch the pull request merges into.
    "base": "main",
    // Whether the pull request is a draft.
    "draft": true,
    // The branch the pull request merges from.
    "head": "fix-checkout-total",
    // The commit the head branch is at.
    "head_sha": "3f2c1a9e5b7d4c6a8e0f1b2c3d4e5f6a7b8c9d0e",
    // The number of the pull request.
    "number": 1,
    // The state of the pull request: `open`, `closed` without merging, or `merged`.
    "state": "closed",
    // The title of the pull request.
    "title": "Fix the checkout total",
    // The URL of the pull request on the forge.
    "url": "https://github.com/acme/shop/pull/42",
    // The login of the pull request's author.
    "author": "ada",
    // The description of the pull request.
    "body": "Rounds the total to cents before tax.",
    // When the pull request was opened, as an ISO 8601 time.
    "created_at": "2026-11-30T14:05:00Z",
    // When the pull request was last edited, as an ISO 8601 time; `null` when it never was.
    "edited_at": "2026-11-30T16:20:00Z",
    // The newest comment that carries the configured finish marker; `null` when there is none or no
    // marker is configured.
    "finish": {
      // The login of the comment's author.
      "author": "ada",
      // The text of the comment.
      "body": "Should this round to cents?",
      // When the comment was written, as an ISO 8601 time.
      "created_at": "2026-11-30T14:05:00Z",
      // The id the forge gives the comment.
      "id": "IC_kwDOAbc456",
      // The URL of the comment on the forge.
      "url": "https://github.com/acme/shop/pull/42#discussion_r1001"
    },
    // Whether the head branch is in another repository.
    "fork": true,
    // When the head commit was made, as an ISO 8601 time.
    "head_committed_at": "2026-11-30T14:00:00Z",
    // The review threads of the pull request.
    "threads": [
      {
        // The comments of the thread, oldest first.
        "comments": [
          {
            // The login of the comment's author.
            "author": "ada",
            // The text of the comment.
            "body": "Should this round to cents?",
            // When the comment was written, as an ISO 8601 time.
            "created_at": "2026-11-30T14:05:00Z",
            // The id the forge gives the comment.
            "id": "IC_kwDOAbc456",
            // The URL of the comment on the forge.
            "url": "https://github.com/acme/shop/pull/42#discussion_r1001"
          }
        ],
        // The id the forge gives the review thread.
        "id": "PRRT_kwDOAbc123",
        // The line the thread is on; `null` for a thread on a whole file.
        "line": 1,
        // Whether the code the thread is on has changed since it was written.
        "outdated": true,
        // The file the thread is on.
        "path": "src/cart/total.ts",
        // Whether the thread is resolved.
        "resolved": true
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge pr_list

<executable> pr_list reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The head branch to list the pull requests of; every head when absent.
    "head": "fix-checkout-total",
    // The most pull requests to list, newest first.
    "limit": 20,
    // The state of the pull requests to list; `all` lists every state.
    "state": "all"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The pull requests, newest first.
    "pull_requests": [
      {
        // The branch the pull request merges into.
        "base": "main",
        // Whether the pull request is a draft.
        "draft": true,
        // The branch the pull request merges from.
        "head": "fix-checkout-total",
        // The commit the head branch is at.
        "head_sha": "3f2c1a9e5b7d4c6a8e0f1b2c3d4e5f6a7b8c9d0e",
        // The number of the pull request.
        "number": 1,
        // The state of the pull request: `open`, `closed` without merging, or `merged`.
        "state": "closed",
        // The title of the pull request.
        "title": "Fix the checkout total",
        // The URL of the pull request on the forge.
        "url": "https://github.com/acme/shop/pull/42"
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge pr_threads

<executable> pr_threads reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The number of the pull request.
    "number": 42
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The review threads of the pull request.
    "threads": [
      {
        // The comments of the thread, oldest first.
        "comments": [
          {
            // The login of the comment's author.
            "author": "ada",
            // The text of the comment.
            "body": "Should this round to cents?",
            // When the comment was written, as an ISO 8601 time.
            "created_at": "2026-11-30T14:05:00Z",
            // The id the forge gives the comment.
            "id": "IC_kwDOAbc456",
            // The URL of the comment on the forge.
            "url": "https://github.com/acme/shop/pull/42#discussion_r1001"
          }
        ],
        // The id the forge gives the review thread.
        "id": "PRRT_kwDOAbc123",
        // The line the thread is on; `null` for a thread on a whole file.
        "line": 1,
        // Whether the code the thread is on has changed since it was written.
        "outdated": true,
        // The file the thread is on.
        "path": "src/cart/total.ts",
        // Whether the thread is resolved.
        "resolved": true
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge pr_files

<executable> pr_files reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The number of the pull request.
    "number": 42
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The files the pull request changes.
    "files": [
      {
        // The number of lines the change adds.
        "additions": 1,
        // The number of lines the change removes.
        "deletions": 1,
        // The path of the file.
        "path": "src/cart/total.ts",
        // The path the file had before a rename; `null` otherwise.
        "previous_path": "src/cart/sum.ts",
        // How the file changed, such as `added`, `modified`, `removed` or `renamed`.
        "status": "modified"
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge compare

<executable> compare reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The branch, tag or commit to compare against.
    "base": "main",
    // The branch, tag or commit to compare.
    "head": "fix-checkout-total"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The number of commits the head is ahead of the base.
    "ahead_by": 1,
    // The number of commits the head is behind the base.
    "behind_by": 1,
    // The commits the head adds to the base.
    "commits": [
      {
        // The name of the commit's author.
        "author": "Ada Lovelace",
        // When the commit was made, as an ISO 8601 time.
        "committed_at": "2026-11-30T14:05:00Z",
        // The commit message.
        "message": "Fix the checkout total",
        // The hash of the commit.
        "sha": "3f2c1a9e5b7d4c6a8e0f1b2c3d4e5f6a7b8c9d0e"
      }
    ],
    // The files the head changes against the base.
    "files": [
      {
        // The number of lines the change adds.
        "additions": 1,
        // The number of lines the change removes.
        "deletions": 1,
        // The path of the file.
        "path": "src/cart/total.ts",
        // The path the file had before a rename; `null` otherwise.
        "previous_path": "src/cart/sum.ts",
        // How the file changed, such as `added`, `modified`, `removed` or `renamed`.
        "status": "modified"
      }
    ],
    // How the head compares with the base: `ahead`, `behind`, `diverged` or `identical`.
    "status": "ahead"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge pr_commits

<executable> pr_commits reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The number of the pull request.
    "number": 42
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The commits of the pull request, oldest first.
    "commits": [
      {
        // The name of the commit's author.
        "author": "Ada Lovelace",
        // When the commit was made, as an ISO 8601 time.
        "committed_at": "2026-11-30T14:05:00Z",
        // The commit message.
        "message": "Fix the checkout total",
        // The hash of the commit.
        "sha": "3f2c1a9e5b7d4c6a8e0f1b2c3d4e5f6a7b8c9d0e"
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge repo_get

<executable> repo_get reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // Whether the repository is archived.
    "archived": true,
    // The branch pull requests merge into by default.
    "default_branch": "main",
    // The name of the repository with its owner, as `owner/name`.
    "name_with_owner": "acme/shop",
    // Whether the repository is private.
    "private": true,
    // The URL of the repository on the forge.
    "url": "https://github.com/acme/shop"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge whoami

<executable> whoami reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The id of the account on the tracker or forge, such as a Jira account id or a GitHub login.
    "account_id": "5b10ac8d82e05b22cc7d4ef5",
    // The name the account shows on the tracker or forge.
    "name": "Ada Lovelace"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

forge classify_command

<executable> classify_command reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The words of the command line, program first.
    "argv": ["gh"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // What the command line does to the forge: `read`, `write`, `merge`, `approve`, `none` when it
    // does not run the forge's CLI, or `unreadable` when what it sends comes from a file, the input
    // or a shell expansion.
    "kind": "approve"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Contract policy

policy decide

<executable> decide reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    "hook_event_name": "PostToolUse",
    // The id of the subagent the call comes from; Claude Code sends it only for a subagent or a
    // main thread started with `--agent`.
    "agent_id": "agent-7c1e4b2a",
    // The type of the agent the call comes from, such as a subagent's name; Claude Code sends it
    // only for a subagent or a main thread started with `--agent`.
    "agent_type": "Explore",
    // The working directory of the session when Claude Code makes the call.
    "cwd": "/home/ada/shop",
    // The id of the Claude Code session the hook call belongs to, as Claude Code sends it in
    // `session_id`.
    "session_id": "0b6d0c3e-7f3a-4f4e-9d5c-2a8e1c5b7d90",
    // The path of the file where Claude Code keeps the conversation of the session.
    "transcript_path": "/home/ada/.claude/projects/shop/0b6d0c3e-7f3a-4f4e-9d5c-2a8e1c5b7d90.jsonl",
    // The input of the tool call as Claude Code sends it: the fields the kit reads by name
    // (`command`, `file_path`, `notebook_path`) beside every other field of the tool.
    "tool_input": {
      // The command line a `Bash` tool call runs; absent for other tools.
      "command": "npm run test",
      // The file a tool call reads or writes, such as `Read`, `Edit` or `Write`; absent for other
      // tools.
      "file_path": "src/cart/total.ts",
      // The notebook a notebook tool call edits; absent for other tools.
      "notebook_path": "notebooks/analysis.ipynb"
    },
    // The name of the tool Claude Code calls, such as `Bash`, `Edit` or an MCP tool's name.
    "tool_name": "Bash",
    // What the tool answered, as JSON; Claude Code sends it only with `PostToolUse`.
    "tool_response": {}
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // What a Policy answers for the hook call, tagged by `_tag`: `Allow`, `Ask`, `BlockStop`,
    // `Context` or `Deny`.
    "decision": {
      "_tag": "Allow"
    }
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Contract project

project resolve_project

<executable> resolve_project reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The name of the repository to resolve the project of.
    "name": "acme/shop"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The branches the project deploys from.
    "deploy_branches": ["main"],
    // Whether the project is deprecated.
    "deprecated": true,
    // The docs the project's group shares.
    "docs": {
      // The docs space of the project's group; none when the group sets none.
      "space": "SHOPDOCS"
    },
    // The error tracker the project's group shares.
    "errors": {
      // The error tracker's project of the project's group; none when the group sets none.
      "project": "shop-web"
    },
    // The gates the project runs: its own, or its kind's.
    "gates": ["npm run lint"],
    // The name of the group the project belongs to.
    "group": "shop",
    // The name of the kind the project is of.
    "kind": "service",
    // The name of the project.
    "name": "acme/shop",
    // The notifications the project's group shares.
    "notify": {
      // The notification channel of the project's group; none when the group sets none.
      "channel": "#shop-dev"
    },
    // Whether the project's pull requests need a review before they merge.
    "review_gate": true,
    // The stack the project uses; none for a stackless kind.
    "stack": "typescript",
    // The tracker the project's group shares.
    "tracker": {
      // The tracker projects the project's issues live in.
      "projects": ["SHOP"]
    }
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Contract tracker

tracker capabilities

<executable> capabilities reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // Patterns of command lines that write to the tracker.
    "cli_write_patterns": ["^jira issue (create|edit)\\b"],
    // Patterns of command lines that create an issue.
    "create_patterns": ["^jira issue create\\b"],
    // The URL of an issue with `{key}` in place of its key.
    "issue_url_template": "https://acme.atlassian.net/browse/{key}",
    // The pattern of the tracker's issue keys, a regular expression without anchors.
    "key_pattern": "[A-Z][A-Z0-9]*-\\d+",
    // The names of the MCP tools that write to the tracker.
    "mcp_write_tools": ["mcp__atlassian__createJiraIssue"],
    // The names of the operations the tracker supports.
    "operations": ["get_issue"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker count

<executable> count reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The query in the tracker's own query language, such as JQL for Jira.
    "query": "project = SHOP AND status = \"In Review\""
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The number of issues that match the query.
    "count": 0
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

<executable> search reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The `next_cursor` the previous page gave; absent for the first page.
    "cursor": "eyJzdGFydEF0Ijo1MH0",
    // The names of the tracker-specific fields the caller also needs.
    "fields": ["labels"],
    // The most issues the page holds.
    "limit": 50,
    // The query in the tracker's own query language, such as JQL for Jira.
    "query": "project = SHOP AND status = \"In Review\""
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The issues of the page.
    "issues": [
      {
        // The key of the issue, such as `T-1`.
        "key": "SHOP-123"
      }
    ],
    // The cursor that asks for the next page; absent or `null` on the last page.
    "next_cursor": "eyJzdGFydEF0IjoxMDB9"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker get_issue

<executable> get_issue reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The names of the tracker-specific fields the caller also needs.
    "fields": ["labels"],
    // The key of the issue to read.
    "key": "SHOP-123"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The person the issue is assigned to, `null` when it has none.
    "assignee": {
      // The id of the account on the tracker or forge, such as a Jira account id or a GitHub login.
      "account_id": "5b10ac8d82e05b22cc7d4ef5",
      // The name the account shows on the tracker or forge.
      "name": "Ada Lovelace"
    },
    // The description of the issue as Markdown; the adapter converts the tracker's rich text, so
    // the kit never sees it.
    "description_md": "The cart total ignores the discount code.",
    // The values of the fields the caller named, by the names it used; an adapter may leave it out
    // when the caller named none. `estimate` is a number or `null`, `sprint` the sprints the issue
    // is in (`[{id, name, state}]`), `subtasks` the keys of its sub-tasks; any other name holds the
    // tracker's own JSON value, `null` when the issue has none.
    "fields": {
      "estimate": 3,
      "labels": ["checkout"]
    },
    // The key of the issue, such as `SHOP-123`.
    "key": "SHOP-123",
    // The links between the issue and other issues.
    "links": [
      {
        // The key of the issue the link starts at.
        "from": "SHOP-123",
        // The id the tracker gives a link between two issues, which `link {remove: id}` takes.
        "id": "10042",
        // The key of the issue the link points to.
        "to": "SHOP-120",
        // The relation the issue `from` stands in to the issue `to`, such as `blocks` or `parent`.
        "type": "blocks"
      }
    ],
    // The key of the parent of the issue, `null` when it has none.
    "parent": "SHOP-100",
    // The status the issue is in.
    "status": {
      // Where the status stands in the tracker's workflow, whatever the tracker calls it: `to_do`
      // (not started), `in_progress` or `done`.
      "category": "done",
      // The tracker's own name for the status, such as `In Review`.
      "name": "In Review"
    },
    // The title of the issue.
    "title": "Fix the checkout total",
    // The type of the issue, `null` when the tracker names none.
    "type": {
      // The type's level in the tracker's hierarchy: 0 for a plain issue, higher for a parent such
      // as an epic, lower for a sub-task.
      "level": 0,
      // The tracker's name for the type, such as `Bug`.
      "name": "Bug"
    }
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker get_comments

<executable> get_comments reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the issue whose comments to read.
    "key": "SHOP-123"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The comments of the issue, oldest first.
    "comments": [
      {
        // The person who wrote the comment, `null` when the tracker names none, such as for a
        // deleted account.
        "author": {
          // The id of the account on the tracker or forge, such as a Jira account id or a GitHub
          // login.
          "account_id": "5b10ac8d82e05b22cc7d4ef5",
          // The name the account shows on the tracker or forge.
          "name": "Ada Lovelace"
        },
        // The text of the comment as Markdown; the adapter converts the tracker's rich text, so the
        // kit never sees it.
        "body_md": "Reproduced on `fix-checkout-total`.",
        // When the comment was written, an ISO 8601 date-time read as UTC.
        "created_at": "2026-11-30T14:05:00Z"
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker create_issue

<executable> create_issue reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The description of the new issue as Markdown.
    "description_md": "The cart total ignores the discount code.",
    // The values of the tracker-specific fields to set on the new issue, by name.
    "fields": {},
    // The key of the parent of the new issue; absent or `null` for an issue without one.
    "parent": "SHOP-100",
    // The key of the project to create the issue in.
    "project": "SHOP",
    // The title of the new issue.
    "title": "Fix the checkout total",
    // The name of the type of the new issue.
    "type": "Bug"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The key of the new issue.
    "key": "SHOP-123",
    // The URL of the new issue.
    "url": "https://acme.atlassian.net/browse/SHOP-123"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker update

<executable> update reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The values to set, by the tracker-specific names of the fields.
    "fields": {},
    // The key of the issue to update.
    "key": "SHOP-123"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker transition

<executable> transition reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the issue to move.
    "key": "SHOP-123",
    // The name of the status to move the issue to.
    "to": "In Review"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The status the issue has after the move.
    "status": {
      // Where the status stands in the tracker's workflow, whatever the tracker calls it: `to_do`
      // (not started), `in_progress` or `done`.
      "category": "done",
      // The tracker's own name for the status, such as `In Review`.
      "name": "In Review"
    }
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

<executable> link reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the issue the link starts at.
    "from": "SHOP-123",
    // The key of the issue the link points to.
    "to": "SHOP-120",
    // The relation the issue `from` stands in to the issue `to`, such as `blocks` or `parent`.
    "type": "blocks"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker children

<executable> children reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The keys of the issues to check.
    "keys": ["SHOP-100"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The keys among the given ones that some other issue names as its parent, in their given
    // order.
    "parents": ["SHOP-100"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker find_recent

<executable> find_recent reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the project to search.
    "project": "SHOP",
    // How many minutes back to look for issues created.
    "since_minutes": 10,
    // The exact title to look for; an issue whose title only contains it does not count.
    "title": "Fix the checkout total"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The issues found, oldest first.
    "issues": [
      {
        // The key of the issue found, such as `SHOP-123`.
        "key": "SHOP-123",
        // The title of the issue found.
        "title": "Fix the checkout total",
        // The URL of the issue found.
        "url": "https://acme.atlassian.net/browse/SHOP-123"
      }
    ]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker rank

<executable> rank reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the issue the given issues go right after.
    "after": "SHOP-123",
    // The keys of the issues to move, in the order they get.
    "keys": ["SHOP-123"]
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker active_sprint

<executable> active_sprint reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the project whose sprint to read.
    "project": "SHOP"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The sprint that is running now, `null` when none is.
    "sprint": {
      // The id the tracker gives the sprint.
      "id": 1,
      // The name of the sprint.
      "name": "Sprint 24",
      // The state of the sprint, such as `active`.
      "state": "active"
    }
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker fields

<executable> fields reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {
    // The key of the project whose field ids to read.
    "project": "SHOP"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The tracker's id of the field the kit names by this key, such as `estimate` or `sprint`.
    "name": "customfield_10016"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

tracker whoami

<executable> whoami reads the request on standard input and, exiting with 0, prints the response.

Request:

{
  // What the operation reads, as the operation defines it.
  "input": {},
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

Response:

{
  // What the operation answers, as the operation defines it.
  "output": {
    // The id of the account on the tracker or forge, such as a Jira account id or a GitHub login.
    "account_id": "5b10ac8d82e05b22cc7d4ef5",
    // The name the account shows on the tracker or forge.
    "name": "Ada Lovelace"
  },
  // The version of the executable protocol the message follows; it is always `1`.
  "protocol": 1
}

On this page