Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
host | No | Whistle server IP address, defaults to localhost if not configured | localhost |
port | No | Whistle server port number, defaults to 8899 if not configured | 8899 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
getRules | 获取所有规则&分组 |
createRule | 创建新规则 |
updateRule | 更新规则内容 |
renameRule | 重命名规则 |
deleteRule | 删除规则 |
enableRule | 启用规则 |
disableRule | 禁用规则 |
createGroup | 创建新分组 |
renameGroup | 重命名分组 |
deleteGroup | 删除分组 |
addRuleToGroup | 将规则添加到分组 |
removeRuleFromGroup | 将规则移出分组 |
getAllValues | 获取所有规则的值 |
createValuesGroup | 创建新的值分组 |
createValue | 创建新的值 |
updateValue | 更新值内容 |
renameValue | 重命名值 |
renameValueGroup | 重命名值分组 |
deleteValue | 删除值 |
deleteValueGroup | 删除值分组 |
addValueToGroup | 将值添加到分组 |
removeValueFromGroup | 将值移出分组 |
getWhistleStatus | 获取whistle服务器的当前状态 |
toggleProxy | 启用或禁用whistle代理 |
toggleHttpInterception | 启用或禁用HTTP拦截 |
toggleHttpsInterception | 启用或禁用HTTPS拦截 |
toggleHttp2 | 启用或禁用HTTP/2 |
toggleMultiRuleMode | 启用或禁用多规则模式 |
getInterceptInfo | 获取URL的拦截信息(请求/响应皆以base64编码) |
replayRequest | 在whistle中重放捕获的请求(本接口请求后不会直接返回结果, 需要使用getInterceptInfo接口获取结果) |
setAllRulesState | 控制所有规则的启用状态(启用/禁用) |
getCurrentTimestamp | 获取当前本地时间戳 |