Repository navigation
Get‑ShpToolPolicy
Returns the tool access policy in force for this session.
Get-ShpToolPolicy [<CommonParameters>]
Reads the allow/deny rule set applied to the tools by Set-ShpToolPolicy. Returns nothing when no policy is set, which is the unrestricted default: every tool call is permitted, as it was before policies existed.
Coverage is the list of rule kinds this policy actually enforces. Read, Write and Shell are always there; Url, Mcp and Tool appear when the policy uses them or when TrustProfile is RestrictedUnattended. A kind outside Coverage is not decided by the policy at all, which is what lets a policy written before those kinds existed keep working unchanged.
Use it to audit what an unattended run was actually allowed to reach, alongside the ToolCallsDenied list on an Invoke-Shp result.
Get-ShpToolPolicy
Returns the current rules, or nothing when the tools are unrestricted.
(Get-ShpToolPolicy).Rule | Format-Table Kind, Deny, Value
Lists the rules in force.
Get-ShpToolPolicy | Select-Object TrustProfile, Coverage
Reports the posture: which profile was asked for, and which rule kinds it enforces.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Clear-ShpChat
- Clear-ShpContext
- Clear-ShpRedactionPolicy
- Clear-ShpToolPolicy
- Clear-ShpUsage
- Compress-ShpChat
- ConvertTo-ShpAnnotation
- ConvertTo-ShpOtelTrace
- ConvertTo-ShpTokenCount
- Get-ShpChat
- Get-ShpChatCheckpoint
- Get-ShpContext
- Get-ShpContextReport
- Get-ShpCosineSimilarity
- Get-ShpCostEstimate
- Get-ShpDefault
- Get-ShpMcpServer
- Get-ShpModel
- Get-ShpModelName
- Get-ShpRedactionPolicy
- Get-ShpTool
- Get-ShpToolPolicy
- Get-ShpUsage
- Initialize-Shp
- Invoke-Shp
- Invoke-ShpBatch
- Invoke-ShpEval
- Invoke-ShpSubagent
- Register-ShpMcpServer
- Register-ShpTool
- Request-ShpEmbedding
- Resolve-ShpError
- Restore-ShpChat
- Save-ShpChat
- Select-ShpModel
- Set-ShpContext
- Set-ShpRedactionPolicy
- Set-ShpToolPolicy
- Start-ShpChat
- Test-ShpCiReadiness
- Unregister-ShpMcpServer
- Unregister-ShpTool