paserver_scratch_dir
Retrieve PAServer's per-profile scratch directory path to enable secure file transfers or cleanup on a remote host.
Instructions
Return PAServer's per-profile scratch directory path on the remote host.
PAServer in restricted mode (the default) only allows file ops inside /Users/<remote_user>/PAServer/scratch-dir/<windows_user>-/. Use this helper to get the right path before calling paserver_put / paserver_get, or to clean up after a build.
Args: profile: Connection Profile name (e.g. "MACBOOK"). remote_user: Unix username running paserver on the Mac/Linux host. You can find this by SSHing to the host once, or check the PAServer terminal output for the home dir.
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": {
"profile": "<profile>",
"remote_user": "<remote_user>"
},
"name": "paserver_scratch_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes | ||
| remote_user | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |