Skip to main content

record_tool_read

Function record_tool_read 

Source
pub async fn record_tool_read(
    pool: &PgPool,
    ctx: &AccessCtx,
    actor: &Actor,
    tool: &str,
    args: &Value,
) -> AppResult<()>
Expand description

Logs a read tool of an MCP client or the built-in assistant that named an item (item, as PRT-000012 or PRT-000012/B, plus an optional revision): one view of the item per tool, labelled with what the tool was asked for. Write tools, tools without an item (searches, lists, change orders) and items the actor may not see log nothing. The tool name is the entry’s detail (read_file_text adds the file).