run_sra_task
Execute SRA tasks asynchronously using specified configuration, timeout, and admin settings. Automate StarRail game tasks with simple parameters.
Instructions
Run an SRA task asynchronously.
Args: config_name: Name of the config to use (e.g., "Default") timeout: Timeout in seconds (default 3600 = 60 minutes) admin: Start SRA with admin or not
Returns: Dict with keys: pid, started_at, cmd, thread, timeout
Raises: Exception: If a task is already running, or if config/Popen cannot be loaded.
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": {
"config_name": "<config_name>"
},
"name": "run_sra_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_name | Yes | ||
| timeout | No | ||
| admin | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||