Skip to content

ctx_execute intent param description references nonexistent search() function #363

@AgentCTO

Description

@AgentCTO

Problem

The ctx_execute tool schema's intent parameter description says:

"Use search(queries: [...]) to retrieve specific sections"

search() is not injected into any scope — calling it produces ReferenceError: search is not defined. The actual retrieval mechanism is the separate ctx_search MCP tool.

Impact

Every agent session that loads the tool schema sees instructions to call a function that doesn't exist. Agents without corrective documentation in their rules/context attempt search(), fail, and fall back to unstructured approaches.

Suggested fix

Update the intent parameter description to reference ctx_search MCP tool:

"Results matching the intent are returned inline for large outputs (>5KB). Use the ctx_search tool for follow-up queries against the same indexed content."

Environment

  • context-mode v1.0.98
  • Claude Code (Anthropic CLI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions