> Full documentation index: [llms.txt](https://docs.qualitymax.io/llms.txt)

# Portability

This page is generated from the live QualityMax MCP registry. Examples use placeholders; replace them with values for your workspace.

## `convert_qtml_to_playwright`

### Purpose

Persist all QTML contracts as projects/test cases, then request model-assisted Playwright generation that persists automation scripts. This is not deterministic compilation or a file-only editor action. Generation may enqueue asynchronous jobs; poll check_generation_status. Import is non-atomic and reports each contract/intent; partial imports skip generation.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | `string` | Yes | QTML source text |
| `project_id` | `integer` | No | Existing project ID (omit to create a new project from QTML contract) |

### Return shape

The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.

### Worked example

```json
{
  "arguments": {
    "source": "your-source"
  },
  "tool": "convert_qtml_to_playwright"
}
```

## `export_project_as_qtml`

### Purpose

Export a QualityMax project and its test cases as a QTML document string.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | `integer` | Yes | Project ID to export |
| `test_case_ids` | `array` | No | Optional list of specific test case IDs to include (omit for all) |

### Return shape

The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.

### Worked example

```json
{
  "arguments": {
    "project_id": 1
  },
  "tool": "export_project_as_qtml"
}
```

## `import_qtml`

### Purpose

Import a QTML source string into QualityMax, creating a project and/or test cases from the QTML contract and intents.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | `string` | Yes | QTML source text to import |
| `project_id` | `integer` | No | Existing project ID to import into (omit to create a new project) |
| `create_project` | `boolean` | No | Create a new project from the QTML contract (default: true) |

### Return shape

The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.

### Worked example

```json
{
  "arguments": {
    "source": "your-source"
  },
  "tool": "import_qtml"
}
```

## `parse_qtml`

### Purpose

Parse a QTML (Quality Testing Meta Language) source string and return its structured representation as JSON. Use this to inspect the contents of a QTML document.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | `string` | Yes | QTML source text to parse |

### Return shape

The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.

### Worked example

```json
{
  "arguments": {
    "source": "your-source"
  },
  "tool": "parse_qtml"
}
```

## `validate_qtml`

### Purpose

Validate a QTML source string. Returns whether it is valid and any errors found.

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | `string` | Yes | QTML source text to validate |

### Return shape

The live registry does not declare a response schema. Expect a tool-specific JSON result and handle success, error, and result fields defensively.

### Worked example

```json
{
  "arguments": {
    "source": "your-source"
  },
  "tool": "validate_qtml"
}
```
