---
title: "corestack_php_runtime_revision_get"
url: https://docs.corefinity.com/mcp/tools/corestack_php_runtime_revision_get
type: tool
last_updated: 2026-11-13
feature: php-runtime
related:
  - https://docs.corefinity.com/api/reference/runtime/get-php-runtime-revision.md
  - https://docs.corefinity.com/guides/sites/software-and-services/php-version.md
---
# corestack_php_runtime_revision_get

**PHP configuration revision.** One PHP configuration revision of a row, from corestack_php_runtime_history_list: its whole state — version, extensions, settings, FPM, Xdebug, the custom php.ini — to compare or to revert to. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

One PHP configuration revision of a row, from corestack_php_runtime_history_list: its whole state — version, extensions, settings, FPM, Xdebug, the custom php.ini — to compare or to revert to.

## Inputs

- `site_id` (integer, ≥ 1, required): The row: the site or one of its environments.
- `revision` (integer, 1–9999999999, required): A revision number from corestack_php_runtime_history_list.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "revision": {
      "description": "A revision number from corestack_php_runtime_history_list.",
      "maximum": 9999999999,
      "minimum": 1,
      "type": "integer"
    },
    "site_id": {
      "description": "The row: the site or one of its environments.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id",
    "revision"
  ],
  "type": "object"
}
```

## Refusals

- `invalid_arguments`: a `revision` this row never had, or no longer keeps (corestack_php_runtime_history_list lists them).
- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_php_runtime_revision_get",
  "arguments": {
    "site_id": 4211,
    "revision": 12
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_php_runtime_revision_get with site_id 4211, revision 12. (PHP configuration revision.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/php-runtime/history/{revision}](https://docs.corefinity.com/api/reference/runtime/get-php-runtime-revision.md)
- Guide: [Change PHP version](https://docs.corefinity.com/guides/sites/software-and-services/php-version.md)
