@on("linear.issue_comment")
def agent(input):
    pass
The following is an example payload which is passed in as an argument to your agent’s entrypoint:
{
  "action": "create",
  "issue": {
    "id": "12345678-1234-1234-1234-123456789012",
    "number": 13,
    "title": "Support multiple agents",
    "description": "When I mention Blocks on slack like `@BlocksOrg /codex /gemini do xyz` \n\nWe want to be able to resolve multiple agents during the Trigger resolution service, and furthermore we want to ensure that we submit independent tasks for each (note the `is_allowed` and task session \"grouping\" logic w.r.t to uniq values / session URNs)\n\n> This might already be in place but want to double check this is the case ",
    "priority": 0,
    "priorityLabel": "No priority",
    "state": {
      "id": "abcd1234-5678-9012-3456-abcdef123456",
      "name": "Todo",
      "type": "unstarted",
      "color": "#e2e2e2"
    },
    "team": {
      "id": "team1234-5678-9012-3456-123456789012",
      "key": "TEAM",
      "name": "Example Team"
    },
    "assignee": undefined,
    "creator": {
      "id": "user1234-5678-9012-3456-123456789012",
      "name": "user@example.com",
      "email": "user@example.com"
    },
    "labels": [],
    "url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents",
    "identifier": "TEAM-13",
    "createdAt": "2025-06-04T00:28:24.140Z",
    "updatedAt": "2025-09-10T01:35:32.510Z"
  },
  "organization": {
    "id": "org12345-1234-1234-1234-123456789012"
  },
  "$raw": {
    "action": "create",
    "createdAt": "2025-09-10T01:35:32.510Z",
    "data": {
      "id": "comment1-2345-6789-0123-456789012345",
      "createdAt": "2025-09-10T01:35:32.519Z",
      "updatedAt": "2025-09-10T01:35:32.510Z",
      "body": "@blocks  can you look into this?",
      "issueId": "12345678-1234-1234-1234-123456789012",
      "userId": "user1234-5678-9012-3456-123456789012",
      "reactionData": [],
      "botActor": null,
      "user": {
        "id": "user1234-5678-9012-3456-123456789012",
        "name": "user@example.com",
        "email": "user@example.com",
        "url": "https://linear.app/example-org/profiles/user"
      },
      "issue": {
        "id": "12345678-1234-1234-1234-123456789012",
        "title": "Support multiple agents",
        "teamId": "team1234-5678-9012-3456-123456789012",
        "team": {
          "id": "team1234-5678-9012-3456-123456789012",
          "key": "TEAM",
          "name": "Example Team"
        },
        "identifier": "TEAM-13",
        "url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents"
      }
    },
    "url": "https://linear.app/example-org/issue/TEAM-13/support-multiple-agents#comment-comment1",
    "type": "Comment",
    "organizationId": "org12345-1234-1234-1234-123456789012"
  },
  "new_comment": {
    "id": "comment1-2345-6789-0123-456789012345",
    "body": "@blocks  can you look into this?",
    "user": {
      "id": "user1234-5678-9012-3456-123456789012",
      "name": "user@example.com",
      "email": "user@example.com"
    },
    "issue": {
      "id": "12345678-1234-1234-1234-123456789012",
      "identifier": "TEAM-13",
      "title": "Support multiple agents"
    },
    "createdAt": "2025-09-10T01:35:32.519Z",
    "updatedAt": "2025-09-10T01:35:32.510Z"
  }
}

Fields

action
string
The action that occurred on the issue comment.
issue
object
The issue that the event is on.
organization
object
The organization associated with the Linear project.
$raw
object
Raw webhook data from Linear containing additional metadata.
new_comment
object
The comment that was created on the issue.