Skip to content

ProjectsInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3998828731["input_types.ProjectsInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3998828731
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the Projects tool.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class ProjectsInput(TypedDict):
    """Input for the Projects tool."""

    method: Literal[
        "project_info",
        "project_read",
        "project_search",
        "project_write",
        "project_delete",
        "project_memory_list",
        "project_memory_read",
    ]
    path: NotRequired[str]
    """project_read/project_write/project_delete: doc path.

    project_write: an existing path is replaced in place; a new bare filename (no "/") is namespaced
    to `claude/<name>`. project_memory_read: memory file path as listed by project_memory_list.
    """
    content: NotRequired[str]
    """project_write: inline doc text.

    Mutually exclusive with local_path. Use local_path for anything you have on disk.
    """
    local_path: NotRequired[str]
    """project_write: a file inside the working directory to upload.

    The tool reads, encodes, and uploads directly — contents never enter your context. Mutually
    exclusive with content.
    """
    present_to_user: NotRequired[bool]
    """project_write: true marks this doc as the file the user needs to see — the deliverable they
    asked for or must act on.

    Defaults to false; leave it unset for routine saves, notes, and bulk writes.
    """
    query: NotRequired[str]
    """project_search: knowledge-base query"""
    n: NotRequired[int]
    """project_search: number of hits (default 5)"""

content instance-attribute

content: NotRequired[str]

project_write: inline doc text.

Mutually exclusive with local_path. Use local_path for anything you have on disk.

local_path instance-attribute

local_path: NotRequired[str]

project_write: a file inside the working directory to upload.

The tool reads, encodes, and uploads directly — contents never enter your context. Mutually exclusive with content.

n instance-attribute

n: NotRequired[int]

project_search: number of hits (default 5)

path instance-attribute

path: NotRequired[str]

project_read/project_write/project_delete: doc path.

project_write: an existing path is replaced in place; a new bare filename (no "/") is namespaced to claude/<name>. project_memory_read: memory file path as listed by project_memory_list.

present_to_user instance-attribute

present_to_user: NotRequired[bool]

project_write: true marks this doc as the file the user needs to see — the deliverable they asked for or must act on.

Defaults to false; leave it unset for routine saves, notes, and bulk writes.

query instance-attribute

query: NotRequired[str]

project_search: knowledge-base query

:fa-brands-github: Show source on GitHub