Cline - 中文版 Docs
  • Cline Documentation
  • 入门指南
    • 快速开始
    • What is Cline?
  • Basics
    • Cline - 中文版胜算 说明文档
      • Cline 和模型上下文协议 (MCP) 服务器:提升 AI 能力
      • Interactive blocks
        • OpenAPI
      • Integrations
        • Cloud Provider Integration
        • Security Concerns
      • .clineignore 功能支持
  • Cline - 中文版胜算 说明文档
    • 什么是Cline - 胜算云增强版
    • 对于新程序员
    • 安装 Cline-胜算云增强版
    • 安装 Dev Essentials
    • 我们最喜欢的技术栈
    • 上下文管理
    • 型号选择指南
  • Getting Started
    • What is Cline?
    • For New Coders
    • Installing Cline
    • Installing Dev Essentials
    • Our Favorite Tech Stack
    • Context Management
    • Model Selection Guide
  • 提高提示技巧
    • 提示工程指南
    • Cline-胜算云增强版 内存库
  • Improving Your Prompting Skills
    • Prompt Engineering Guide
    • Cline Memory Bank
  • 探索 Cline 的工具
    • Cline-胜算云增强版 工具指南
  • 检查站
  • 计划与行动模式:有效人工智能发展指南
  • 新建任务工具
  • Remote Browser 支持
  • Exploring Cline's Tools
    • Cline Tools Guide
    • Checkpoints
    • Plan & Act Modes: A Guide to Effective AI Development
    • New Task Tool
  • Remote Browser Support
  • 企业解决方案
    • 安全问题
  • 云提供商集成
  • MCP 服务器
  • 自定义说明
  • Security Concerns
    • Security Concerns
  • Cloud Provider Integration
  • MCP Servers
  • Custom Instructions
  • MCP服务器
    • MCP概述
    • MCP市场
  • 从 GitHub 添加 MCP 服务器
  • 配置 MCP 服务器
  • 连接到远程服务器
  • MCP 传输机制
  • MCP 服务器开发协议
  • MCP Servers
    • MCP Overview
  • MCP Marketplace
  • Adding MCP Servers from GitHub
  • Configuring MCP Servers
  • Connecting to a Remote Server
  • MCP Transport Mechanisms
  • MCP Server Development Protocol
  • 自定义模型配置
    • 带有凭证身份验证的 AWS Bedrock
    • 带配置文件身份验证的 AWS Bedrock
    • GCP Vertex AI
  • LiteLLM 和 Cline-胜算云增强版(使用 Codestral)
  • Custom Model Configs
    • AWS Bedrock w/ Credentials Authentication
  • AWS Bedrock w/ Profile Authentication
  • GCP Vertex AI
  • LiteLLM & Cline (using Codestral)
  • 本地运行模型
    • 请先阅读
    • Ollama
    • LM 工作室
  • Ollama
  • LM Studio
  • Running Models Locally
  • More Info
    • Telemetry
    • 遥测
Powered by GitBook
On this page
  • What Can Cline Do?
  • First Steps
  • Key Features
  • Available Tools
  • Common Tasks
  • Getting Help
  1. Exploring Cline's Tools

Cline Tools Guide

What Can Cline Do?

Cline is your AI assistant that can:

  • Edit and create files in your project

  • Run terminal commands

  • Search and analyze your code

  • Help debug and fix issues

  • Automate repetitive tasks

  • Integrate with external tools

First Steps

  1. Start a Task

    • Type your request in the chat

    • Example: "Create a new React component called Header"

  2. Provide Context

    • Use @ mentions to add files, folders, or URLs

    • Example: "@file:src/components/App.tsx"

  3. Review Changes

    • Cline will show diffs before making changes

    • You can edit or reject changes

Key Features

  1. File Editing

    • Create new files

    • Modify existing code

    • Search and replace across files

  2. Terminal Commands

    • Run npm commands

    • Start development servers

    • Install dependencies

  3. Code Analysis

    • Find and fix errors

    • Refactor code

    • Add documentation

  4. Browser Integration

    • Test web pages

    • Capture screenshots

    • Inspect console logs

Available Tools

Cline has access to the following tools for various tasks:

  1. File Operations

    • write_to_file: Create or overwrite files

    • read_file: Read file contents

    • replace_in_file: Make targeted edits to files

    • search_files: Search files using regex

    • list_files: List directory contents

  2. Terminal Operations

    • execute_command: Run CLI commands

    • list_code_definition_names: List code definitions

  3. MCP Tools

    • use_mcp_tool: Use tools from MCP servers

    • access_mcp_resource: Access MCP server resources

    • Users can create custom MCP tools that Cline can then access

    • Example: Create a weather API tool that Cline can use to fetch forecasts

  4. Interaction Tools

    • ask_followup_question: Ask user for clarification

    • attempt_completion: Present final results

Each tool has specific parameters and usage patterns. Here are some examples:

  • Create a new file (write_to_file):

    Copy

    <write_to_file>
    <path>src/components/Header.tsx</path>
    <content>
    // Header component code
    </content>
    </write_to_file>
  • Search for a pattern (search_files):

    Copy

    <search_files>
    <path>src</path>
    <regex>function\s+\w+\(</regex>
    <file_pattern>*.ts</file_pattern>
    </search_files>
  • Run a command (execute_command):

    Copy

    <execute_command>
    <command>npm install axios</command>
    <requires_approval>false</requires_approval>
    </execute_command>

Common Tasks

  1. Create a New Component

    • "Create a new React component called Footer"

  2. Fix a Bug

    • "Fix the error in src/utils/format.ts"

  3. Refactor Code

    • "Refactor the Button component to use TypeScript"

  4. Run Commands

    • "Run npm install to add axios"

Getting Help

  • Check the documentation

  • Provide feedback to improve Cline

PreviousRemote Browser 支持NextCheckpoints

Last updated 2 months ago

For the most up-to-date implementation details, you can view the full source code in the .

Cline repository
Join the Discord community