ps
Create a persistent PowerShell runspace via WinRM, then run scripts and close the session. Maintain remote PowerShell sessions for repeated command execution.
Instructions
Persistent PowerShell runspace (WinRM): op=open|invoke|close. open needs ep=; invoke/close need id=; invoke uses script=.
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": {
"op": "<op>"
},
"name": "ps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ep | No | ||
| id | No | ||
| op | Yes | ||
| script | No |