//! `phrase.parse` — the local phrase parser, for the app, through the SAME//! handler an assistant's `parse_phrase` reaches.//!//! #1284 put the deterministic engine in `cotton-core::phrase` and its MCP verb//! in `cotton_tools::mcp::handlers::phrase`. This is the app's door to that//! verb, wired the way `phone::records` wires the generic verbs: the request is//! the tool's arguments exactly (`{text, now, time_zone, projects, people}`),//! and the answer is the tool's answer exactly. Nothing here parses, defaults//! or re-ranks — a second reading of a phrase would be a second opinion about//! what the owner meant.//!//! It runs through `ClientController::read_tool` over the owner's context//! (`Ctx::phone`), the path every tool-backed read takes: a read tool that//! wrote would be refused and rolled back. A refusal is the tool's own sentence under `unreadable`, as//! a `read.*` refusal is; a request that is not an object is `bad_request`.use serde_json::Value;usecrate::methods::MethodError;usecrate::shell::client::ClientController;/// The method name.pubconst METHOD: &str = "phrase.parse";/// The MCP tool it calls.pubconst TOOL: &str = "parse_phrase";/// Answer `phrase.parse`.pubfn call(client: &ClientController, request: &Value) -> Result<Value, MethodError> {let args = crate::phone::tool_arguments(request)?; client .read_tool(TOOL, &args) .map_err(|reason| MethodError::new("unreadable", reason))}#[cfg(test)]#[path = "phrase_tests.rs"]mod tests;