---
title: "callRepoExtensionInstallationTool"
---

> Documentation Index
> Fetch the complete documentation index at: https://buildrforge.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# callRepoExtensionInstallationTool

Path: Forge API › extensions

`POST /repos/{repo_id}/extension-installations/{name}/tools/{tool}`

Call a tool of main's installation with the JSON input, at the version main's head commit pins; the tool acts as you, on this repo.

## Path parameters

- `repo_id` (`callRepoExtensionInstallationTool.path.repo_id`; string, required)
  - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `name` (`callRepoExtensionInstallationTool.path.name`; string, required)
  - maxLength: `129` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$`
- `tool` (`callRepoExtensionInstallationTool.path.tool`; string, required)
  - maxLength: `128` · pattern: `^[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*$`

## Request body

_Required._

## Example request

```json
null
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/repos/<repo_id>/extension-installations/<name>/tools/<tool>' \
  --header 'Content-Type: application/json' \
  --data null
```

### TypeScript

```typescript
const url = '<base-url>/repos/<repo_id>/extension-installations/<name>/tools/<tool>';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify(null)
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/repos/<repo_id>/extension-installations/<name>/tools/<tool>"

payload = "null"
headers = {"Content-Type": "application/json"}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
null
```

### 400

ExtensionToolInputInvalid | InvalidRequest | RequestBodyTooDeep

#### Example

```json
{
  "_tag": "ExtensionToolInputInvalid",
  "extension_name": "string",
  "tool": "string",
  "message": "string"
}
```

Any of the following:

- `ExtensionToolInputInvalidEncoded`
  - `_tag` (`ExtensionToolInputInvalidEncoded._tag`; string, required)
    - one of `"ExtensionToolInputInvalid"`
  - `extension_name` (`ExtensionToolInputInvalidEncoded.extension_name`; string, required)
    - minLength: `1`
  - `tool` (`ExtensionToolInputInvalidEncoded.tool`; string, required)
    - minLength: `1`
  - `message` (`ExtensionToolInputInvalidEncoded.message`; string, required)
- `InvalidRequestEncoded`
  - `_tag` (`InvalidRequestEncoded._tag`; string, required)
    - one of `"InvalidRequest"`
  - `part` (`InvalidRequestEncoded.part`; string, required)
    - one of `"path"`, `"query"`, `"headers"`, `"body"`
  - `issues` (`InvalidRequestEncoded.issues`; array of object, required)
    - `path` (`InvalidRequestEncoded.issues.path`; array\<any of\>, required)
      - any of the following: `string`, `integer`
    - `message` (`InvalidRequestEncoded.issues.message`; string, required)
- `RequestBodyTooDeepEncoded`
  - `_tag` (`RequestBodyTooDeepEncoded._tag`; string, required)
    - one of `"RequestBodyTooDeep"`
  - `max_depth` (`RequestBodyTooDeepEncoded.max_depth`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`callRepoExtensionInstallationTool.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 402

ComputeLimitReached

#### Example

```json
{
  "_tag": "ComputeLimitReached",
  "plan": "free",
  "included_runs": -9007199254740991,
  "resets_at": "string"
}
```

- `_tag` (`callRepoExtensionInstallationTool.response.402._tag`; string, required)
  - one of `"ComputeLimitReached"`
- `plan` (`callRepoExtensionInstallationTool.response.402.plan`; string, required)
  - one of `"free"`, `"pro"`, `"team"`
- `included_runs` (`callRepoExtensionInstallationTool.response.402.included_runs`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `resets_at` (`callRepoExtensionInstallationTool.response.402.resets_at`; string, required)

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

ExtensionInstallationNotFound | ExtensionToolNotFound | RepoNotFound | OrgNotFound

#### Example

```json
{
  "_tag": "ExtensionInstallationNotFound",
  "extension_name": "string",
  "message": "string"
}
```

Any of the following:

- `ExtensionInstallationNotFoundEncoded`
  - `_tag` (`ExtensionInstallationNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionInstallationNotFound"`
  - `extension_name` (`ExtensionInstallationNotFoundEncoded.extension_name`; string, required)
    - minLength: `1`
  - `message` (`ExtensionInstallationNotFoundEncoded.message`; string, required)
- `ExtensionToolNotFoundEncoded`
  - `_tag` (`ExtensionToolNotFoundEncoded._tag`; string, required)
    - one of `"ExtensionToolNotFound"`
  - `extension_name` (`ExtensionToolNotFoundEncoded.extension_name`; string, required)
    - minLength: `1`
  - `tool` (`ExtensionToolNotFoundEncoded.tool`; string, required)
    - minLength: `1`
- `RepoNotFoundEncoded`
  - `_tag` (`RepoNotFoundEncoded._tag`; string, required)
    - one of `"RepoNotFound"`
- `OrgNotFoundEncoded`
  - `_tag` (`OrgNotFoundEncoded._tag`; string, required)
    - one of `"OrgNotFound"`

### 409

ConnectionRequired | OAuthReconnectRequired | RepoArchived

#### Example

```json
{
  "_tag": "ConnectionRequired",
  "extension_name": "string",
  "requirement": "string",
  "scope": "org",
  "repo_id": "string"
}
```

Any of the following:

- `ConnectionRequiredEncoded`
  - `_tag` (`ConnectionRequiredEncoded._tag`; string, required)
    - one of `"ConnectionRequired"`
  - `extension_name` (`ConnectionRequiredEncoded.extension_name`; string, required)
  - `requirement` (`ConnectionRequiredEncoded.requirement`; string, required)
  - `scope` (`ConnectionRequiredEncoded.scope`; string, required)
    - one of `"org"`, `"user"`
  - `repo_id` (`ConnectionRequiredEncoded.repo_id`; string, required)
    - pattern: `^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$`
- `OAuthReconnectRequiredEncoded`
  - `_tag` (`OAuthReconnectRequiredEncoded._tag`; string, required)
    - one of `"OAuthReconnectRequired"`
  - `connection_id` (`OAuthReconnectRequiredEncoded.connection_id`; string, required)
- `RepoArchivedEncoded`
  - `_tag` (`RepoArchivedEncoded._tag`; string, required)
    - one of `"RepoArchived"`

### 413

WriteTooLarge | RequestBodyTooLarge

#### Example

```json
{
  "_tag": "WriteTooLarge",
  "message": "string"
}
```

Any of the following:

- `WriteTooLargeEncoded`
  - `_tag` (`WriteTooLargeEncoded._tag`; string, required)
    - one of `"WriteTooLarge"`
  - `message` (`WriteTooLargeEncoded.message`; string, required)
- `RequestBodyTooLargeEncoded`
  - `_tag` (`RequestBodyTooLargeEncoded._tag`; string, required)
    - one of `"RequestBodyTooLarge"`
  - `max_bytes` (`RequestBodyTooLargeEncoded.max_bytes`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 422

ExtensionToolFailed

#### Example

```json
{
  "_tag": "ExtensionToolFailed",
  "extension_name": "string",
  "tool": "string",
  "message": "string",
  "location": {
    "path": "string",
    "line": -9007199254740991,
    "column": -9007199254740991
  }
}
```

- `_tag` (`callRepoExtensionInstallationTool.response.422._tag`; string, required)
  - one of `"ExtensionToolFailed"`
- `extension_name` (`callRepoExtensionInstallationTool.response.422.extension_name`; string, required)
  - minLength: `1`
- `tool` (`callRepoExtensionInstallationTool.response.422.tool`; string, required)
  - minLength: `1`
- `message` (`callRepoExtensionInstallationTool.response.422.message`; string, required)
- `location` (`callRepoExtensionInstallationTool.response.422.location`; object, optional)
  - `path` (`callRepoExtensionInstallationTool.response.422.location.path`; string, required)
    - minLength: `1`
  - `line` (`callRepoExtensionInstallationTool.response.422.location.line`; integer, optional)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `column` (`callRepoExtensionInstallationTool.response.422.location.column`; integer, optional)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`callRepoExtensionInstallationTool.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

RepoFailure | OrgFailure

#### Example

```json
{
  "_tag": "RepoFailure",
  "reason": "string"
}
```

Every option has:

- `reason` (`<option>.reason`; string, required)

Any of the following, each adding:

- `RepoFailureEncoded`
  - `_tag` (`RepoFailureEncoded._tag`; string, required)
    - one of `"RepoFailure"`
- `OrgFailureEncoded`
  - `_tag` (`OrgFailureEncoded._tag`; string, required)
    - one of `"OrgFailure"`

### 503

OAuthRenewalFailed | RepoBusy | SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "OAuthRenewalFailed",
  "connection_id": "string"
}
```

Any of the following:

- `OAuthRenewalFailedEncoded`
  - `_tag` (`OAuthRenewalFailedEncoded._tag`; string, required)
    - one of `"OAuthRenewalFailed"`
  - `connection_id` (`OAuthRenewalFailedEncoded.connection_id`; string, required)
- `RepoBusyEncoded`
  - `_tag` (`RepoBusyEncoded._tag`; string, required)
    - one of `"RepoBusy"`
  - `message` (`RepoBusyEncoded.message`; string, required)
- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/call-repo-extension-installation-tool/index.md
