mirror of
https://github.com/7836246/cursor2api.git
synced 2026-05-08 06:38:20 +08:00
132 lines
5.9 KiB
JSON
132 lines
5.9 KiB
JSON
[
|
|
{
|
|
"role": "user",
|
|
"content": "<available-deferred-tools>\nAgent\nAskUserQuestion\nBash\nEdit\nEnterPlanMode\nEnterWorktree\nExitPlanMode\nGlob\nGrep\nListMcpResourcesTool\nNotebookEdit\nRead\nReadMcpResourceTool\nSkill\nTaskOutput\nTaskStop\nTodoWrite\nWebFetch\nWebSearch\nWrite\nmcp__EMQX__get_mqtt_client\nmcp__EMQX__kick_mqtt_client\nmcp__EMQX__list_mqtt_clients\nmcp__EMQX__publish_mqtt_message\nmcp__context7__query-docs\nmcp__context7__resolve-library-id\nmcp__fetch__fetch\nmcp__filesystem__create_directory\nmcp__filesystem__directory_tree\nmcp__filesystem__edit_file\nmcp__filesystem__get_file_info\nmcp__filesystem__list_allowed_directories\nmcp__filesystem__list_directory\nmcp__filesystem__list_directory_with_sizes\nmcp__filesystem__move_file\nmcp__filesystem__read_file\nmcp__filesystem__read_media_file\nmcp__filesystem__read_multiple_files\nmcp__filesystem__read_text_file\nmcp__filesystem__search_files\nmcp__filesystem__write_file\nmcp__git__git_add\nmcp__git__git_blame\nmcp__git__git_branch\nmcp__git__git_changelog_analyze\nmcp__git__git_checkout\nmcp__git__git_cherry_pick\nmcp__git__git_clean\nmcp__git__git_clear_working_dir\nmcp__git__git_clone\nmcp__git__git_commit\nmcp__git__git_diff\nmcp__git__git_fetch\nmcp__git__git_init\nmcp__git__git_log\nmcp__git__git_merge\nmcp__git__git_pull\nmcp__git__git_push\nmcp__git__git_rebase\nmcp__git__git_reflog\nmcp__git__git_remote\nmcp__git__git_reset\nmcp__git__git_set_working_dir\nmcp__git__git_show\nmcp__git__git_stash\nmcp__git__git_status\nmcp__git__git_tag\nmcp__git__git_worktree\nmcp__git__git_wrapup_instructions\nmcp__memory__add_observations\nmcp__memory__create_entities\nmcp__memory__create_relations\nmcp__memory__delete_entities\nmcp__memory__delete_observations\nmcp__memory__delete_relations\nmcp__memory__open_nodes\nmcp__memory__read_graph\nmcp__memory__search_nodes\nmcp__mysql__describe_table\nmcp__mysql__execute_query\nmcp__mysql__list_databases\nmcp__mysql__list_tables\nmcp__redis__delete\nmcp__redis__get\nmcp__redis__list\nmcp__redis__set\nmcp__sequential-thinking__sequentialthinking\nmcp__time__convert_time\nmcp__time__get_current_time\n</available-deferred-tools>"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "<system-reminder>\nThe following skills are available for use with the Skill tool:\n\n- keybindings-help: Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: \"rebind ctrl+s\", \"add a chord shortcut\", \"change the submit key\", \"customize keybindings\".\n- simplify: Review changed code for reuse, quality, and efficiency, then fix any issues found.\n- claude-api: Build apps with the Claude API or Anthropic SDK.\nTRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK.\nDO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.\n</system-reminder>"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "<system-reminder>\nAs you answer the user's questions, you can use the following context:\n# currentDate\nToday's date is 2026-03-05.\n\n IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.\n</system-reminder>\n"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "'搜一下今天的财经新闻"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "tool_use",
|
|
"id": "toolu_ec3c018ca1e149c8a2620a41",
|
|
"name": "WebSearch",
|
|
"input": {
|
|
"query": "财经新闻 2026年3月5日",
|
|
"max_results": 10
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "tool_result",
|
|
"content": "<tool_use_error>InputValidationError: WebSearch failed due to the following issue:\nAn unexpected parameter `max_results` was provided</tool_use_error>",
|
|
"is_error": true,
|
|
"tool_use_id": "toolu_ec3c018ca1e149c8a2620a41"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "tool_use",
|
|
"id": "toolu_df8e58147af54616a6ede618",
|
|
"name": "WebSearch",
|
|
"input": {
|
|
"query": "财经新闻 2026年3月5日"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "tool_result",
|
|
"content": "Claude requested permissions to use WebSearch, but you haven't granted it yet.",
|
|
"is_error": true,
|
|
"tool_use_id": "toolu_df8e58147af54616a6ede618"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "I don't have permission to use WebSearch. Let me try fetching financial news via the fetch tool instead."
|
|
},
|
|
{
|
|
"type": "tool_use",
|
|
"id": "toolu_948d45dec8d64dac9544e4f1",
|
|
"name": "ToolSearch",
|
|
"input": {
|
|
"query": "select:mcp__fetch__fetch"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "tool_result",
|
|
"tool_use_id": "toolu_948d45dec8d64dac9544e4f1",
|
|
"content": [
|
|
{
|
|
"type": "tool_reference",
|
|
"tool_name": "mcp__fetch__fetch"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "tool_use",
|
|
"id": "toolu_32f8968c67dd4efcbfec7bed",
|
|
"name": "mcp__fetch__fetch",
|
|
"input": {
|
|
"url": "https://finance.sina.com.cn/",
|
|
"max_length": 5000
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "tool_result",
|
|
"content": "Claude requested permissions to use mcp__fetch__fetch, but you haven't granted it yet.",
|
|
"is_error": true,
|
|
"tool_use_id": "toolu_32f8968c67dd4efcbfec7bed",
|
|
"cache_control": {
|
|
"type": "ephemeral"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |