mqscript_mid
Extract substrings from text by specifying start position and optional length for precise text manipulation in mobile automation scripts.
Instructions
Get substring from specified position
Input Schema
Name | Required | Description | Default |
---|---|---|---|
length | No | Length of substring (optional) | |
resultVariable | No | Variable name to store result | result |
start | Yes | Starting position (1-based) | |
text | Yes | Source string |
Input Schema (JSON Schema)
{
"properties": {
"length": {
"default": -1,
"description": "Length of substring (optional)",
"type": "number"
},
"resultVariable": {
"default": "result",
"description": "Variable name to store result",
"type": "string"
},
"start": {
"description": "Starting position (1-based)",
"type": "number"
},
"text": {
"description": "Source string",
"type": "string"
}
},
"required": [
"text",
"start"
],
"type": "object"
}