extract_object_references
Extract object references from test code to identify which objects are used in Squish tests.
Instructions
Extract object references from test content to understand what objects are being used.
Args: test_content: The test code to analyze
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"test_content": "<test_content>"
},
"name": "extract_object_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names_objects | Yes | Objects referenced via names.py (e.g. names.someButton) | |
| direct_objects | Yes | Objects referenced with inline property dicts | |
| primary_pattern | Yes | Dominant reference style: 'names', 'global_scripts', 'direct', or 'unknown' | |
| unknown_objects | Yes | Object references that could not be classified | |
| total_references | Yes | Total count of all object references found | |
| global_script_objects | Yes | Objects referenced via global script modules |