Skip to content

create_doc tool returns error even though doc is created successfully #91

@samuel-dev-boop

Description

@samuel-dev-boop

When calling the create_doc tool, the document is actually created successfully in Monday. However, the tool response still returns an error message due to an invalid mutation being called afterward (add_content_to_doc_from_markdown).

Tool Response:
toolName:create_doc: { "content": [ { "type": "text", "text": "Error creating document: Cannot query field \"add_content_to_doc_from_markdown\" on type \"Mutation\".: { \"response\": { \"errors\": [ { \"message\": \"Cannot query field \\\"add_content_to_doc_from_markdown\\\" on type \\\"Mutation\\\".\", \"locations\": [{\"line\":3,\"column\":5}] } ], \"extensions\":{\"request_id\":\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"}, \"status\":200, \"headers\":{} }, \"request\": { \"query\":\"mutation addContentToDocFromMarkdown($docId: ID!, $markdown: String!, $afterBlockId: String) { add_content_to_doc_from_markdown(docId: $docId, markdown: $markdown, afterBlockId: $afterBlockId) { success block_ids error } }\" , \"variables\": { \"docId\":\"xxxxxxxxxx\", \"markdown\":\"my man is doing good\" } } }" } ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions